Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot delete a queue via the artemis web console

I'm experimenting with artemis 2.13.0 on Docker. I can create a queue programmatically but I cannot delete it via the web console.

Sometimes destroyQueue appears as an option in the operations for the queue. Other times it does not. Recently I cannot destroy the queue from the console.

I get the following error:

java.lang.IllegalArgumentException : No operation destroyQueue found on MBean org.apache.activemq.artemis:address="example",broker="77643207e938",component=addresses,queue="example",routing-type="anycast",subcomponent=queues

Any ideas why this might be happening?

Thanks

like image 317
Schaffer Avatar asked Aug 22 '26 06:08

Schaffer


1 Answers

The destroyQueue is an operation only accessible the trought ActiveMQServerControl, ie to destroy the queue with the name TEST using the MBean org.apache.activemq.artemis:broker:

curl -H "Origin:http://localhost" -u admin:admin http://localhost:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=%220.0.0.0%22/destroyQueue%28java.lang.String%29/TEST

You are getting this error because the MBean used in your request is org.apache.activemq.artemis:address while should be org.apache.activemq.artemis:broker as in the previous example.

This could be caused by the selection of the wrong node in the left panel. To solve this issue, select the broker node in the left panel before to execute the destroyQueue operation.

like image 159
Domenico Francesco Bruscino Avatar answered Aug 27 '26 01:08

Domenico Francesco Bruscino



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!