Create the local queue


Before starting

Before creating a local queue on the queue manager, we must already have completed the task: Create 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:

Parent topic: Tutorial 1: Sending a message to a local queue Previous topic: Create the queue manager Next topic: Put a test message on the local queue


Create the local queue using IBM MQ Explorer


Procedure

  1. In the Navigator view, expand the Queue Managers folder.
  2. Expand queue manager QM_APPLE.
  3. Right-click the Queues folder, then click New > Local Queue. The New Local Queue wizard opens.
  4. In the Name field, type Q1
  5. 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.


Create the local queue using MQSC

About this task

Open a command prompt and follow these steps:

Procedure

  1. Enable MQSC commands by typing the command:
    runmqsc QM_APPLE
  2. 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.

  3. Stop MQSC by typing the command:
    end

Results

We have now created a local queue called Q1.