[rabbitmq-discuss] queue is locked exclusively
Matthias Radestock
matthias at lshift.net
Tue Aug 4 11:37:29 BST 2009
Rajesh,
Reddy, Rajesh (GPT EMEA) wrote:
> 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.
In that case I do not understand the problem. With an exclusive queue
when "some exception occurs and the connection dies" the queue will get
deleted. So on reconnecting you should simply re-declare (and re-bind)
the exclusive queue and start consuming from it.
You must be doing something different though, since the RESOURCE_LOCKED
error indicates that an attempt was made to re-declare the queue when it
existed already, and from a different connection to the one that created it.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list