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


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:
  1. Create an IBM MQ queue and a JMS queue simultaneously.
  2. 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.

    1. 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.
    2. Click New > Local Queue to open the New Local Queue wizard.
    3. 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.

    1. 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.
    2. Click New > Topic to open the New Topic wizard.
    3. 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


Related reference