No use the ActiveMQ MBeans as they have queue size attributes etc. That is the fastest way to get these numbers.
The browsable endpoint uses the JMS API which would load all the messages from the queue to get the counter. And thus its slower. On Mon, May 13, 2013 at 11:08 AM, loganathan <logu.i...@gmail.com> wrote: > Thanks for your reply.now we are using BrowsableEndPoint for getting number > of messages in queue like > > browsableEndPoint = > camelcontext.getEndPoint(jobqueueEndpoint,BrowsableEndPoint); > > Now i am getting the number of messages in the queue.But i am not sure is > this a right way of doing?can you help me for this?is this a right way? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-in-getting-JMS-queue-attributes-using-MbeanServer-tp5732173p5732396.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen