activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: Get the number of pending messages programatically
Date Wed, 19 Jan 2011 11:47:55 GMT
Hi,

you could use the statisticsplugin:

http://activemq.apache.org/statisticsplugin.html

Bye,
Norman


2011/1/19 oscarfh2 <oscarfh@gmail.com>:
>
> Hi,
> I am developing a tool which gather information about queues in a server.
> One of these informations is how many pending messages.
>
> My approach now is to open a browser and iterate through all the messages,
> it works, but it is not good:
> 1-it is slow
> 2-each "next message" will make a network call, that makes it unacceptable
>
> Is there any other way to get this number? It would be perfect to have
> something like this:
>
> queue.getPendingMessageNumber()
>
> But I couldn't find... Any ideas of how I could do that?
> The server has this information, because I can see it in the server console.
> The question is: how can I reach it?
>
> Tks,
> Oscar
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Get-the-number-of-pending-messages-programatically-tp3225127p3225127.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>

Mime
View raw message