How to send message to queue in ActiveMQ Artemis via GUI

陌路散爱 提交于 2019-12-11 17:38:13

问题


I have Apache ActiveMQ Artemis installed and want to populate a queue via the GUI with a message.

I navigate to queues --> Select queue --> operations

There is a function sendMessage(java.util.Map,int,java.lang.String,boolean,java.lang.String,java.lang.String)

The screen looks like :

For the Type, I add in 1 and for the Body I add in "Test"

When I click execute, the queue does not get populated.

Is there something else I need to do to populate the queue via Artemis GUI ?


回答1:


I think it's easier if you navigate to the queue in the left navigation panel, click the queue, and then click the Send button:

And then it will give you a screen to send with headers and payload:

The one you're looking at is invoking the JMX command directly; which should work fine! But it may be wonky if your payload and headers aren't formatted correctly to post to the Jolokia endpoint.

You might not be seeing the Send button I mentioned because you need to be logged in with a write-able role (i.e. admin, or configured user with that role).




回答2:


Be aware that the clickable "Send" link shown above may not appear in your version of the Artemis ActiveMQ console as shown. On my version 2.1.0, you have to click this icon in the upper right hand part of the screen.

enter image description here



来源:https://stackoverflow.com/questions/49633057/how-to-send-message-to-queue-in-activemq-artemis-via-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!