activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Alateras <>
Subject Re: Getting the size of a Queue
Date Thu, 14 Jun 2007 22:55:56 GMT

I am running an embedded broker and I use 
org.apache.activemq.brokerBrokerServer.getAdminView() to get access to 
the counters (enqueue, dequeue and queued count). These counters are at 
the broker level not the queue level though.

hope this helps.

MarcoB70 wrote:
> I would like to access programmatically the size of a Queue without making
> use of a QueueBrowser and scanning the elements it returns.
> In the FAQ will a JMX approach recommendend (see
>, but I
> would rather follow another way.
> Other JMS implementations offer for example methods to get the messageCount
> via a so-called Broker-Object.
> Any hint?
> Thanks in advance.
> Marco

View raw message