Use DCE to share queues on different queue managers

 


WebSphere supplies an implementation of a name service that uses DCE (Distributed Computing Environment), although you are free to write your own component that does not use DCE.

To use the supplied name service component, define the name service and its installed component to the queue manager by inserting the appropriate stanza in the queue manager configuration file (qm.ini), or the Registry for Windows systems. See Installable services for information on how to do this. You must also configure DCE as described in DCE configuration.

Note:
You cannot use the IBM-supplied DCE name service with WebSphere MQ SSL software.

If your queue managers are located on nodes within a Distributed Computing Environment (DCE) cell, you can configure them to share queues. Applications can then connect to one queue manager and open a queue for output on another queue manager on another node.

The queue manager rejects open requests from a local application if the queue is not defined on that queue manager. However, when the DCE name service is in use, the remote queue does not need to be defined on the local queue manager. Also, if an appropriate set of transmission queues are defined, the queue can be moved between remote queue managers within the DCE cell without any changes being required to the local definitions.

 

Configuration tasks for shared queues

This section describes how you set up shared queues on queue managers that reside on nodes that are within the DCE cell.

For each queue manager:

  1. Use the endmqm command to stop the queue manager if it is running.

  2. Configure the name service by adding the required name service stanza to the queue manager configuration file. To invoke the name service, you have to restart the queue manager.

  3. Use the strmqm command to restart the queue manager.

  4. Set up channels for messaging between queue managers; see WebSphere MQ Intercommunication for further details.

For any queue that you want to be shared, specify the SCOPE attribute as CELL. For example, use these MQSC commands:


DEFINE QLOCAL (GREY.PUBLIC.QUEUE) SCOPE(CELL)
or
ALTER QLOCAL (PINK.LOCAL.QUEUE) SCOPE(CELL)

The queue created or altered must belong to a queue manager on a node within the DCE cell.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.