无法通过Artemis Web控制台删除队列

时间:2020-07-07 09:29:42

标签: activemq-artemis

我正在Docker上试用artemis 2.13.0。 我可以通过编程方式创建队列,但无法通过Web控制台将其删除。

有时,destroyQueue作为队列操作中的一个选项出现。其他时候没有。 最近,我无法从控制台销毁队列。

我收到以下错误:

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

为什么会发生这种情况?

谢谢

1 个答案:

答案 0 :(得分:1)

destroyQueue是只能访问事务ActiveMQServerControl的操作,即使用MBean TEST销毁名称为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

您会收到此错误,因为请求中使用的MBean是org.apache.activemq.artemis:address,而上一个示例中的MBean应该是org.apache.activemq.artemis:broker

这可能是由于在左面板中选择了错误的节点引起的。 要解决此问题,请在执行destroyQueue操作之前在左面板中选择Broker节点。

相关问题