[rabbitmq-discuss] How do I inspect the queue

Reddy, Rajesh (GPT EMEA) Rajesh_Reddy at ml.com
Tue May 5 17:02:41 BST 2009


Hi Tony,

Thanks a lot for your reply.

Yes iam following the same steps as mentioned by you below. In my case I
have a call back which is waiting on this queue.
Now whenever a message arrives on the queue I get the callback called.

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).

Do you see any reason why the queue was deleted and the connection still
active. 

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

Thanks
Rajesh

-----Original Message-----
From: Tony Garnock-Jones [mailto:tonyg at lshift.net] 
Sent: 05 May 2009 16:52
To: Reddy, Rajesh (GPT EMEA)
Cc: rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] How do I inspect the queue


Hi,

Reddy, Rajesh (GPT EMEA) wrote:
> Iam using the RabbitMQ client for .NET . I have created a non durable
> and autodelete queue. When is the queue autodeleted and also how do I
> inspect a queue instance after declaring it.

Autodelete queues disappear once the last consumer consuming from them
is closed. (If no consumers are ever created on the queue, it won't be
deleted automatically, IIRC.) Since consumers are scoped to the lifetime
of a channel, which in turn is scoped to the lifetime of a TCP/IP
connection, then if you

 - connect
 - open a channel
 - create your autodelete queue
 - basic.consume from it
 - handle deliveries for a while
 - drop the connection, either cleanly or as the result of an error

then the queue will end up deleted.

Regarding inspection of the queue, what kinds of things are you
interested in? You might try "rabbitmqctl list_queues", and see if any
of the available info items meet your needs.

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

--------------------------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to "Merrill Lynch" are references to any company in the Merrill Lynch & Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------------------------
 




More information about the rabbitmq-discuss mailing list