[rabbitmq-discuss] queue is locked exclusively
Reddy, Rajesh (GPT EMEA)
rajesh_reddy at ml.com
Tue Aug 4 11:28:15 BST 2009
Hi Matthias,
We need the exclusive queue as the queue should auto delete if the
consumer dies/shuts down.
What is the best approach for resubscribing if some excpetion occurs and
the conenction dies.
Thanks
Rajesh
-----Original Message-----
From: Matthias Radestock [mailto:matthias at lshift.net]
Sent: 30 July 2009 03:07
To: Reddy, Rajesh (GPT EMEA)
Cc: rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] queue is locked exclusively
Rajesh,
Reddy, Rajesh (GPT EMEA) wrote:
> Iam using the RabbitMQ client for .NET . I need to re subscribe to the
> queue from my client if the connection drops or queue deletes.
>
> Iam getting the following error when trying to resubscribe to the
queue.
> [...] "RESOURCE_LOCKED - cannot obtain exclusive access to
> locked queue 'reddyraj_ELONW124027_4244_20090721-091729_PM' in vhost
> '/'" [...]
> Is there a way to identify if the queue is locked exclusively?
Exclusive queues are owned by the connection that created them. The
general idea is for that (and *only* that) connection to subscribe
consumer(s) to the queue. Exclusive queues are deleted when the
connection goes away.
May I ask why you declare the queue as exclusive? Wouldn't a
non-exclusive queue fit your use case better?
Regards,
Matthias
--------------------------------------------------------------------------
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