Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activemq jolokia rest api for deleting a queue?

Is there a way to delete a queue with ActiveMQ rest api on 5.9.0? I know you can purge a queue with

"http://" + host + ":" + port + "/api/jolokia/exec/org.apache.activemq:brokerName=localhost,destinationName=" + queueName + ",destinationType=Queue,type=Broker/purge()";

But what is the one for deleting?

like image 635
Nicholas DiPiazza Avatar asked Sep 02 '25 17:09

Nicholas DiPiazza


1 Answers

You should use the following URL pattern:

http://hostname:8161/hawtio/jolokia/exec/org.apache.activemq:type=Broker,brokerName=MyBroker/removeQueue(java.lang.String)/MyQueue

You can read about the format to access JMX operations thorugh jolokia here.

like image 127
Petter Nordlander Avatar answered Sep 06 '25 00:09

Petter Nordlander