<div dir="ltr">Thanks guys.<div><br></div><div>If I declare the queue exclusive, then my other server won't be able to register the queue consumer right? �We have two ESB servers for load balancing. �That means, two queue consumer for that queue. �However, if someone accidentally execute the service, then it'll create a new channel/connection and queue consumer for that queue. �That I don't want to happen.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 10:04 AM, Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
If you need to have just one consumer per queue, then declare the<br>
queue as exclusive.<br>
<br>
If you want to check if there are consumers attached to a particular<br>
queue, then inspect the return values of issuing a passive<br>
queueDeclare.<br>
<br>
Regards,<br>
<br>
Alvaro<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Feb 12, 2014 at 3:59 PM, cw storm <<a href="mailto:cwstorm@gmail.com">cwstorm@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have a situation where someone executed the service that calls the<br>
> "basicConsume" which basically assigns a queue consumer to that queue on a<br>
> different channel. �This cause multiple queue consumer for that queue. �Is<br>
> there someway in that service where I can check to see if an existing queue<br>
> consumer already exist for that queue before issue'ing the "basicConsume"?<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
_______________________________________________<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></div>