Enterprise Integration Zone is brought to you in partnership with:

Mitch Pronschinske is a Senior Content Analyst at DZone. That means he writes and searches for the finest developer content in the land so that you don't have to. He often eats peanut butter and bananas, likes to make his own ringtones, enjoys card and board games, and is married to an underwear model. Mitch is a DZone Zone Leader and has posted 2569 posts at DZone. You can read more from them at their website. View Full User Profile

Rest Management API Coming to ActiveMQ 5.8

01.06.2013
| 4111 views |
  • submit to reddit

ActiveMQ 5.7 made a big splash in October of last year with Java 7 support and secured broker connectability for the REST API.

For the 5.8, you can expect another big new feature: a REST management API
Here's the lowdown from the wiki:

Starting with version 5.8 we provide a REST management API for the broker. Using Jolokia JMX-HTTP bridge it's possible to access all broker metrics (like memory usage) and execute management operations (like purging queues) using REST API. By default the management API is exposed at http://localhost:8161/api/jolokia/ URL. So you can for example get basic broker data with

wget --user admin --password admin http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost

or to be more specific, total consumer count with

wget --user admin --password admin http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/TotalConsumerCount

For more information on Jolokia protocol, see its reference manual. An API like this makes it easy to script monitoring and management operations agains the broker.



Also, don't forget to keep up with Apache Apollo, a next-generation, high-performance, multi-protocol messaging broker built from the ground up to one day be a drop-in replacement of ActiveMQ 5.x.