[rabbitmq-discuss] How check for existing queue consumer
Alvaro Videla
videlalvaro at gmail.com
Wed Feb 12 15:04:12 GMT 2014
Hi,
If you need to have just one consumer per queue, then declare the
queue as exclusive.
If you want to check if there are consumers attached to a particular
queue, then inspect the return values of issuing a passive
queueDeclare.
Regards,
Alvaro
On Wed, Feb 12, 2014 at 3:59 PM, cw storm <cwstorm at gmail.com> wrote:
> Hi,
>
> I have a situation where someone executed the service that calls the
> "basicConsume" which basically assigns a queue consumer to that queue on a
> different channel. This cause multiple queue consumer for that queue. Is
> there someway in that service where I can check to see if an existing queue
> consumer already exist for that queue before issue'ing the "basicConsume"?
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
More information about the rabbitmq-discuss
mailing list