+

Search Tips | Advanced Search

Create the queues

Create IBM MQ queues that are managed by the IBM MQ queue manager.


Before starting

We must have an IBM MQ queue manager that is set up as described in Create the queue manager.


About this task

Start the MQSC interface to administer objects that are connected to the queue manager. Create a transmission queue, and a remote queue definition. Exit the MQSC interface.


Procedure

  1. On the command-line, type:
    runmqsc QM1
    
    After a confirmation message, the tool is ready to accept commands.
  2. Create a transmission queue called QM2. It is good practice to give the transmission queue the same name as the remote queue manager. In the MQSC interface, type:
    DEFINE QLOCAL(QM2) DESCR('Transmission queue to QM2') USAGE(XMITQ)
    
    The transmission queue is created.
  3. Create a remote queue definition called QUEUE.ON.QM2. The remote queue definition must refer to the name given to the local queue on the remote host. In the MQSC interface, type:
    DEFINE QREMOTE(QUEUE.ON.QM2) DESCR('Remote queue for QM2') XMITQ(QM2) RNAME(RECEIVEQUEUE) RQMNAME(QM2)
    
    The remote queue definition is created.
  4. Type end to exit the MQSC interface.


What to do next

To create the sender channel that is used to connect to the target queue manager, follow the instructions in Create the sender channel. Parent topic: Implement the solution Previous topic: Create the queue manager Next topic: Create the sender channel

Last updated: 2020-10-04