Advertise with us

Our eBooks

How to create a Queue with Jmx Console ?

 

Bring up the JMX Console in your browser and look for the section labelled jboss.mq in the main agent view. Click on the link which says service=DestinationManager.

The DestinationManager MBean is the main JMS service in JBoss and you can use it to create and destroy queues and topics at runtime.

Look for the operation called createQueue. There will be two operations by that name, both of which take a different number of arguments. Look for the one that takes only one argument. That argument is the name of the queue. This takes two parameters. Enter MyQueue and click the Invoke button. This will create a queue bound under the JNDI name queue/MyQueue.

With this recipe you learnt how to configure at runtime a JMS Queue using the Jmx Console.

© 2021 mastertheboss.com. All Rights Reserved.

Please publish modules in offcanvas position.