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

Reply via email to