Purge AMQ queue using jolokia api Purge AMQ queue using jolokia api curl curl

Purge AMQ queue using jolokia api


Well.. it is indeed an old post, but this is the answer:

http://127.0.0.1:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=[BROKERNAME],destinationType=Queue,destinationName=[QUEUENAME]/purge

Perhaps it's useful for anybody.


If you use hawtio [1], then it has a JMX plugin you can use to find the JMX operation to purge. When hawtio shows information about the selected operation, it also shows the jolokia url to use to make the REST call.

You can use hawtio to connect remotely to your ActiveMQ, or install hawtio directly as a web console in the broker - http://sensatic.net/activemq/activemq-and-hawtio.html