On Sun, Aug 17, 2008 at 11:26 PM, Jigar Naik <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> is it possible to get a count of total number of messages in a queue ?
>
> I want to do something like if the count exceed some limit than only start
> processing.

You an get a queue count via the use of JMX. I've provided an example
of this previously and it is available as an attachment on the
following discussion:

http://markmail.org/search/?q=activemq%20amqjmxexampletest#query:activemq%20amqjmxexampletest+page:1+mid:us7q7dgdinp2sfo6+state:results

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Reply via email to