Pand005
Pand005

Reputation: 1175

How to get all the Queues in one node

I want fetch the all the available Queues in the one machine using Java API(Spring-AMQP). I didn't find the right API. Can anyone suggest the API for the same.

Upvotes: 1

Views: 1379

Answers (2)

lambodar
lambodar

Reputation: 3763

Below HTTP get call will list you all queue

http://localhost:55672/api/queues

List all queues under a particular vhost: http://localhost:55672/api/queues/vhost_name

Refer the doc for more details.

Upvotes: 0

Gary Russell
Gary Russell

Reputation: 174554

You have to use the REST API for that; the AMQP protocol itself has no support for it.

Spring AMQP 1.5 (currently milestone 1) has a wrapper for the java REST client - RabbitManagementTemplate or you can use the java client provided by the rabbitmq team directly.

Upvotes: 2

Related Questions