Creating the local queue
Before you begin
Before creating a local queue on the queue manager, you must already have completed the task: Creating the queue manager.About this task
This topic shows how to create a local queue called Q1 on the queue manager called QM_APPLE.We can perform this task using either of the following interfaces:Creating the local queue using IBM MQ Explorer
Procedure
- In the Navigator view, expand the Queue Managers folder.
- Expand queue manager QM_APPLE.
- Right-click the Queues folder, then click New > Local Queue. The New Local Queue wizard opens.
- In the Name field, type Q1
- Click Finish.
Results
The new queue Q1, is displayed in the Content view, as displayed in the following screen capture:
If the queue is not displayed in the Content view, click Refresh in the Content view.
Creating the local queue using MQSC
About this task
Open a command prompt and follow these steps:Procedure
- Enable MQSC commands by typing the command:
runmqsc QM_APPLE
- Type the following command:
define qlocal (Q1)
Messages tell you that the queue has been created and that the default IBM MQ objects have been created.
- Stop MQSC by typing the command:
end
Results
You have now created a local queue called Q1.