[rabbitmq-discuss] How do I inspect the queue

Tony Garnock-Jones tonyg at lshift.net
Tue May 5 17:11:51 BST 2009


Reddy, Rajesh (GPT EMEA) wrote:
> As I was debugging some issue the queue was deleted even though the
> connection is still active and I was no longer receiving any call back(
> as the queue no longer exists).

Could it be that the pauses caused by the debugger in turn caused the
heartbeat mechanism to fire, terminating the connection at the server-side?

> Also, regarding the Queue inspection . I meant how do I check in my
> client if the queue exists.

You can do a passive declare; though this will cause the channel to
close if the queue does not exist. Alternatively, you may not need to
check: queue.declare is idempotent, and you can simply issue the
queue.declare again if you are in doubt.

Regards,
  Tony
-- 
 [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
   [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
 []  [] http://www.lshift.net/ | Email: tonyg at lshift.net




More information about the rabbitmq-discuss mailing list