Prakash Jha
Prakash Jha

Reputation: 1

How can I list queues on a RabbitMQ exchange using Java?

I had two host every host have some queue.I want to list all queue declared by other node. On basis of that queues, I have to perform some operation.

I didn't get any method which will list all queues from amqp server.

Thanks

Upvotes: 0

Views: 3493

Answers (1)

Gary Russell
Gary Russell

Reputation: 174554

Spring AMQP does not provide a direct abstraction, but RabbitMQ provides a ReST API via its management plugin.

You can use the Spring RestTemplate to query the API.

Upvotes: 1

Related Questions