Question

I am reading now that Jolokia can act as a medium to command and manage ActiveMQ 5.8+ through a restAPI (GET/POST commands).

I am failing to find any references on what the specific commands are to (for example):

  1. Get a list of active queues
  2. Get a list of customers for each queue
  3. Pause a queue
  4. Delete a queue
  5. Restart a queue

Etc, Etc.

If there is no official reference, how does anyone figure out how to do this? Is there some mapping to the JMX commands to the Jolokia commands? If so, what is that mapping?

Was it helpful?

Solution

The API is the JMX API that ActiveMQ exposes.

For practical examples you can try using hawtio (http://hawt.io/) in ActiveMQ and then use (if you use chrome but other browsers may have plugins) right click -> Inspect Element -> Network. Then you can see all the network access and thus the HTTP GET/POST that hawtio does to access jolokia to grab the data / do the operations.

Notice hawtio comes out of the box in ActiveMQ 5.9, so its easy to get started with.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top