Creating the queue manager and queues for IBM® WebSphere MQ

Create the Queue Manager and Queues for WebSphere® MQ.

About this task

In Windows, you can use the MQSeries® Explorer, or follow the directions below.

To create the Queue Manager and Queues:

Procedure

  1. Log in as the WebSphere MQ user or as a user belonging to the mqm user group.
  2. Navigate to the directory where WebSphere MQ has been installed. Typically the location is as follows:
    • If you are using UNIX - /opt/mqm/bin
    • If you are using Windows - <WebSphere MQ Install Directory>\bin
  3. Run the dspmq command to find out which queue managers, if any, exist.
    • If a suitable queue manager exists, start it using the strmqm <qmgr> command. The queue manager can be stopped by using the endmqm <qmgr> command.
    • If no queue manager exists, use the crtmqm <MYQMGR> command to create one.
  4. Run the runmqsc command to send commands for creating queues. For examples of these commands, see below:
       runmqsc MYQMGR 
       DEFINE QLOCAL ('getATP'); 
       DEFINE QLOCAL ('createOrder');
       END
       
    Note: WebSphere MQ converts all characters to upper case, which causes errors. To use mixed case names, enclose them within single quotation marks, for example, DEFINE QLOCAL ('getATP').