[rabbitmq-discuss] queue is locked exclusively

Matthias Radestock matthias at lshift.net
Thu Jul 30 03:07:06 BST 2009


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




More information about the rabbitmq-discuss mailing list