How to create a Queue with Jmx Console ?

NOTE: The JMX Console is a tool used to manage JBoss AS 5. If you are running the newer version of the application server, follow up on this tutorial: JBoss JMS configuration

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.

Found the article helpful? if so please follow us on Socials