[rabbitmq-discuss] Admin client java
Vlad Alexandru Ionescu
vlad at rabbitmq.com
Wed Sep 15 13:28:21 BST 2010
AFAIK, there is no way to list the queues declared on the broker
directly from Java.
But there is a way of getting the number of messages in a given queue
(provided that you know its name). Redeclare the Queue, setting only its
name and passive=true, and then inspect the DeclareOk.getMessageCount()
to get the number of messages.
On 09/15/2010 01:19 PM, Isaías Espejo Badia wrote:
> I am using the java client to rabbitmq and the queues work very well
> I have three queues.
> I know that I can see this with the command "rabbitmqctl list_queues"
> in the server but I need create a proccess in java that check how many
> elements there are in each queue.
> I am searching in the java client and I don´t have found any way to do
> Does it exist any client java to use administration command?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss