[rabbitmq-discuss] Admin client java
Vlad Alexandru Ionescu
vlad at rabbitmq.com
Wed Sep 15 13:28:21 BST 2010
Hi Isaias,
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.
Rgds,
Vlad.
On 09/15/2010 01:19 PM, Isaías Espejo Badia wrote:
> Hello,
>
> 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
> this
> Does it exist any client java to use administration command?
>
> Regards,
> Isaias
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100915/4e796e45/attachment-0001.htm>
More information about the rabbitmq-discuss
mailing list