examples of creating, remote queues, as a remote queue definition, creating remote queues, examples, as a queue manager alias, as an alias to a reply-to queue" /> Examples of creating a remote queue

 

Examples of creating a remote queue

Use the CRTMQMQ panel to define the queue with queue type

*RMT, using one of the following online methods:

  1. The CRTMQMQ command.

  2. F6=Create on the WRKMQMQ panel.

The use of remote queues is described in detail in WebSphere MQ Intercommunication.

This section describes how to define a remote queue for each of the three uses. We use the CRTMQMQ command in the examples; we can, of course, do the same thing from the WRKMQMQ panel.

 

Creating a remote queue as a remote queue definition

This is the most straightforward use of remote queues. It is used to direct messages to a local queue on a remote queue manager, through a transmission queue.

To create a remote queue for this use:

  1. Type CRTMQMQ on the command line and press the

    F4 key.

  2. Type the queue name in the

    Queue name field.

  3. Type

    *RMT in the Queue type field.

  4. Type the name of the local queue manager in the

    Queue Manager Name field.

  5. Type the name of the local queue at the remote location in the

    Remote queue field.

  6. Type the name of the queue manager at the remote location in the

    Remote Message Queue Manager field.

  7. Optionally, type the name of the transmission queue to the remote location in the

    Transmission queue field.

    If you do not specify a transmission queue name, the transmission queue with the same name as the remote queue manager is used.

 

Creating a remote queue as a queue manager alias

Queue manager alias definitions can be used to remap the queue manager name specified in the MQOPEN call. This enables you to alter the target queue manager without changing your applications.

See WebSphere MQ Intercommunication for further information.

To define a remote queue as a queue manager object:

  1. Type CRTMQMQ on the command line and press the

    F4 key.

  2. Type the queue name in the

    Queue name field.

  3. Type

    *RMT in the Queue type field.

  4. Type the name of the local queue manager in the

    Queue Manager Name field.

  5. Type the name of the queue manager at the remote location in the

    Remote Message Queue Manager field.

  6. Optionally, type the name of the transmission queue to the remote location in the

    Transmission queue field.

    If you do not specify a transmission queue name, the transmission queue with the same name as the remote queue manager is used.

 

Creating a remote queue as an alias to a reply-to queue

An application can name a reply-to queue when it puts a message on a queue. The reply-to queue name is used by the application that gets the message from the queue to send reply messages. To define an alias to a reply-to queue, define a remote queue with the same name as the reply-to queue.

See WebSphere MQ Intercommunication for further information.

To create a remote queue as an alias to a reply-to queue:

  1. Type CRTMQMQ on the command line and press the

    F4 key.

  2. Type the queue name in the

    Queue name field.

    This must be the same as the reply-to queue named by the putting application.

  3. Type

    *RMT in the Queue type field.

  4. Type the name of the local queue manager in the

    Queue Manager Name field, unless you are using the default queue manager.

  5. Type the queue name in the

    Queue name field.

    This is the name of the queue to which you want the reply-to messages sent.

  6. Type the name of the queue manager at the remote location in the

    Remote Message Queue Manager field.

    This is the name of the queue manager to which you want the reply-to messages sent.

  7. Optionally, type the name of the transmission queue to the remote location in the

    Transmission queue field.

    If you do not specify a transmission queue name, the transmission queue with the same name as the remote queue manager is used.