+

Search Tips | Advanced Search

Create the queues on the sending queue manager


Before starting

Before creating the queues on the sending queue manager, you must already have created the queue manager in the task:


About this task

In this part of the tutorial, we will create a remote queue definition and a transmission queue on the sending queue manager. We can perform this task using either of the following interfaces:

Parent topic: Tutorial 2: Sending a message to a remote queue Previous topic: Create the queue manager on the sending machine Next topic: Create a message channel


Create the queues on the sending queue manager using IBM MQ Explorer


About this task

On the sending queue manager:


Procedure

  1. In the Navigator view, expand the Queue Managers folder.
  2. Expand queue manager QM_ORANGE.
  3. Right-click the Queues folder, then click New > Remote Queue Definition. The New Remote Queue Definition wizard opens.
  4. In the Name field, type Q1
  5. Click Next.
  6. In the Remote queue field, type Q1
  7. In the Remote queue manager field, type QM_APPLE
  8. In the Transmission queue field, type QM_APPLE
  9. Click Finish. We have now created the remote queue definition.
  10. Click the QM_ORANGE queue manager.
  11. Right-click the Queues folder, then click New > Local Queue The New Local Queue wizard opens.
  12. In the Name field, type QM_APPLE
  13. Click Next.
  14. In the Usage field, select Transmission.
  15. Click Finish. We have now created the transmission queue on the local machine.


Results

The new queues, Q1 and QM_APPLE, are displayed in the Content view.

If the queues are not displayed in the Content view, click Refresh in the Content view.


Create the queues on the sending queue manager using MQSC


About this task

Open a command prompt on the sending machine and follow these steps:


Procedure

  1. Start MQSC by typing the command:
    runmqsc
    A message tells you that an MQSC session has started.
  2. Define a local queue called QM_APPLE by typing the following command:
    define qlocal (QM_APPLE) usage (xmitq)
    A message tells you when the queue has been created.
  3. Define a remote queue definition by typing the following command:
    define qremote (Q1) rname (Q1) rqmname(QM_APPLE) xmitq (QM_APPLE)


Results

We have now created the queues on the sending queue manager. The next task is to create the message channel between the sending and receiving queue managers.

Last updated: 2020-10-04