Create the queues on the sending queue manager using IBM MQ Explorer
About this task
On the sending queue manager:Procedure
- In the Navigator view, expand the Queue Managers folder.
- Expand queue manager QM_ORANGE.
- Right-click the Queues folder, then click New > Remote Queue Definition. The New Remote Queue Definition wizard opens.
- In the Name field, type Q1
- Click Next.
- In the Remote queue field, type Q1
- In the Remote queue manager field, type QM_APPLE
- In the Transmission queue field, type QM_APPLE
- Click Finish. We have now created the remote queue definition.
- Click the QM_ORANGE queue manager.
- Right-click the Queues folder, then click New > Local Queue The New Local Queue wizard opens.
- In the Name field, type QM_APPLE
- Click Next.
- In the Usage field, select Transmission.
- 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
- Start MQSC by typing the command:
runmqsc
A message tells you that an MQSC session has started. - 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. - 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.