Create an IBM MQ object and a JMS object simultaneously
When creating a new IBM MQ object, we can optionally create a corresponding JMS object of the same type.
Before starting
- We must have an IBM MQ queue manager. If one does not exist, we can create one as described in: Create and configure queue managers and objects
- We must have a JMS initial context. If one does not exist, we can create one as described in: Add the initial context that will contain the JMS topic
- We must be connected to the JMS initial context as described in: Connect to the initial context
About this task
With the object creation wizards in IBM MQ Explorer, you can create an IBM MQ object and a JMS object simultaneously. You begin by launching we required object wizard, for example; an IBM MQ queue. Then you select the option to launch another wizard, for example; a JMS queue, after the object has been created. The second object wizard must be of the same object type, and the properties of one are mapped to the other.
We can perform this task for queues or topics:- Create an IBM MQ queue and a JMS queue simultaneously.
- Create an IBM MQ topic and a JMS topic simultaneously.
Procedure
-
[OPTION 1] Create an IBM MQ queue and a JMS queue simultaneously.
When creating a new IBM MQ queue in IBM MQ Explorer, we can choose to launch the New JMS Queue wizard to create a JMS queue immediately after the IBM MQ New Local Queue wizard has finished. The New JMS Queue wizard now contains the details you entered when creating the IBM MQ queue.
- Select the queue manager we want to add a new IBM MQ queue to in the Navigator view, and right-click on its Queues queue manager object folder.
- Click New > Local Queue to open the New Local Queue wizard.
- Type a name for the queue, then select Start wizard to create a matching JMS Queue. Work through the wizard to create your queue.
After you have completed the New Local Queue wizard, the New Destination New JMS Queue wizard opens, with many of the IBM MQ queue details mapped to the JMS queue.
-
[OPTION 2] Create an IBM MQ topic and a JMS topic simultaneously.
When creating a new IBM MQ topic in IBM MQ Explorer, we can choose to launch the New JMS Topic wizard to create a JMS topic immediately after the IBM MQ New Topic wizard has finished. The New JMS Topic wizard now contains the details you entered when creating the IBM MQ topic.
- Select the queue manager we want to add a new IBM MQ topic to in the Navigator view, and right-click on its Topics queue manager object folder.
- Click New > Topic to open the New Topic wizard.
- Type a name for the topic, then select Start wizard to create a matching JMS topic. Work through the wizard to create your topic.
Once you have completed the New Topic wizard, the New Destination New JMS Topic wizard opens, with many of the IBM MQ topic details mapped to the JMS topic.
Parent topic: Create and configure queue managers and objects
Related tasks
- Create a destination
- Create an IBM MQ object from a JMS object
- Create a JMS object from an IBM MQ object
Related reference