[rabbitmq-discuss] How check for existing queue consumer
cw storm
cwstorm at gmail.com
Wed Feb 12 17:47:01 GMT 2014
So, can I achieve this through code or not? Simon mentioned that one can
get the info via curl command line but not sure how to implement this in my
java code. I want to be able to check the value of the consumer tag before
performing to the next step of registering the queue consumer. Is this
possible?
On Wed, Feb 12, 2014 at 12:41 PM, Michael Klishin <
michael.s.klishin at gmail.com> wrote:
>
> 2014-02-12 21:25 GMT+04:00 cw storm <cwstorm at gmail.com>:
>
> I suppose i can do "String consumerTag =
>> channel.queueDeclarePassive(strQueueName).getConsumerTag();"
>>
>
> Channel#queueDeclarePassive returns AMQP.Queue.DeclareOk which does not
> have
> a consumer tag field. In fact, it can't: there can be multiple consumers
> per queue.
>
>
> --
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140212/12fed524/attachment.html>
More information about the rabbitmq-discuss
mailing list