[rabbitmq-discuss] How check for existing queue consumer

Michael Klishin michael.s.klishin at gmail.com
Wed Feb 12 17:55:45 GMT 2014


2014-02-12 21:47 GMT+04:00 cw storm <cwstorm at gmail.com>:

> 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?


curl is a command line HTTP client. RabbitMQ HTTP API returns JSON
responses.
There is no dedicated HTTP API client in Java, so you'll have to use an
HTTP client library + JSON parser.

API reference is at
http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_2_3/priv/www/api/index.html
.
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140212/a6d0b6a5/attachment.html>


More information about the rabbitmq-discuss mailing list