Sorry, didn't see your reply =)<br>txAMQP takes all parameters that defined in spec.<br><br><div class="gmail_quote">On Mon, Oct 11, 2010 at 9:00 PM, Alexandru Scvorţov <span dir="ltr"><<a href="mailto:alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Brennan,<br>
<br>
I don't think exclusive queues are quite what you expect them to be.<br>
An exclusive queue can only be accessed by the channel that created it.<br>
A durable queue is one that survives a broker restart. Since the<br>
connection and channel will be closed on a broker restart, a durable<br>
exclusive queue would become completely unaccessible.<br>
<br>
What you probably want is exclusive consumers. If a consumer sets the<br>
exclusive bit in the basic.consume method, only that consumer is<br>
allowed to consume from the queue. Using this, you can ensure that only<br>
one consumer consumes from any queue at any time.<br>
<br>
I'm not familiar with txAMQP, but have a look at basic.consume. There<br>
should (fingers crossed) be an 'exclusive' parameter.<br>
<br>
Cheers,<br>
Alex<br>
<div><div></div><div class="h5"><br>
On Mon, Oct 11, 2010 at 01:35:31PM -0400, Brennan Sellner wrote:<br>
> Hi all,<br>
><br>
> Does anyone have a preferred mechanism for creating what amounts to a<br>
> durable, exclusive queue? We need durable queues, and want to ensure<br>
> that only one client subscribes to each queue at a time. I'm not seeing<br>
> an AMQP way to do this, since exclusive and durable are mutually<br>
> exclusive: am I missing something?<br>
><br>
> Alternatively, I could hack around this if there were a way to retrieve<br>
> the number of clients subscribed to a given queue, but again I haven't<br>
> been able to find any way to get that information.<br>
><br>
> We're using Rabbit 2.1.0, with txAMQP 0.3.<br>
><br>
> Thanks,<br>
><br>
> -Brennan<br>
><br>
><br>
><br>
> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>