activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject Re: Get size of queue
Date Tue, 16 Mar 2010 13:16:19 GMT
On Tue, Mar 16, 2010 at 1:36 AM, Norman Maurer <> wrote:
> Hi all,
> is it somehow possible to get the exact number of items in a queue
> with the jms api ? It would be also nice to be able to check the size
> of items with a given selector..
> So any idea?

APIs are available for this via JMX. However, that number is only good
for that exact second in time. This is just the nature of JMS because
messages are flowing through the system constantly. Why do you need
the queue size?

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

ActiveMQ in Action:

View raw message