[rabbitmq-discuss] Admin client java

Emile Joubert emile at rabbitmq.com
Wed Sep 15 13:25:52 BST 2010


Hi Isaías,

On 15/09/10 13:19, 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?


You can obtain a count of the number of items in a queue via AMQP by
redeclaring the queue and calling DeclareOk.getMessageCount().


-Emile


More information about the rabbitmq-discuss mailing list