[rabbitmq-discuss] Queues and auto_delete
Matthias Radestock
matthias at lshift.net
Thu Aug 6 20:39:51 BST 2009
Garrett,
Garrett Smith wrote:
> On Thu, Aug 6, 2009 at 2:08 PM, Matthias Radestock<matthias at lshift.net> wrote:
>> Is your queue declared with exclusive=true?
>
> Yes.
>
> I only want a single consumer from the queue, but the queue needs to
> stick around to collected messages even when the consumer is
> disconnected.
Exclusivity is on a per-connection basis. It sounds like you want a
notion of exclusivity based on consumer identity. That is not directly
supported by AMQP, but you can simulate it quite faithfully by declaring
an ordinary (non-auto-delete, non-exclusive) queue with a name that is
known only to the intended consumer.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list