activemq-users mailing list archives

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

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.

cheers
</jima>
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
> http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html), 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


Mime
View raw message