[rabbitmq-discuss] list queued messages?

Simon MacMullen simon at rabbitmq.com
Tue Dec 18 10:51:22 GMT 2012


On 18/12/12 10:08, Emile Joubert wrote:
> Hi Patryk,
>
> On 17/12/12 17:05, Patryk Moura wrote:
>> Guys, theres any1way to list all queued messages from a server "x" in a
>> datagrid? (.net for example?)
>
> It is possible to dequeue and then requeue all messages in a queue using
> a standard AMQP client, but this could be an expensive operation and it
> will alter the messages by turning on the redelivered flag when those
> messages are delivered subsequently. You would also need to enumerate
> the queues, which cannot be done with AMQP - this will require
> "rabbitmqctl list_queues" or access to the management interface.

Also, check the management API /api/queues/<vhost>/<name>/get, 
documented here:

http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_0_1/priv/www/api/index.html

This dequeues and requeues as Emile suggests.

Cheers, Simon
-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list