The concept of queue-manager aliasing is described in detail in the WebSphere MQ Intercommunication book.
Queue-manager aliases, which are created using a remote-queue definition with a blank RNAME, have four uses:
DEFINE QREMOTE(YORK) RNAME(' ') RQMNAME(CLUSQM)
This defines YORK as a queue-manager name that can be used as an alias for the queue manager called CLUSQM. When an application on the queue manager that made this definition puts a message to queue manager YORK, the local queue manager resolves the name to CLUSQM. If the local queue manager is not called CLUSQM, it puts the message on the cluster transmission queue to be moved to CLUSQM, and changes the transmission header to say CLUSQM instead of YORK.
DEFINE QREMOTE(ROME) RNAME(' ') RQMNAME(PALERMO) XMITQ(X) CLUSTER(ITALY)
This is a queue-manager alias definition, which defines and advertises ROME as a queue manager over which messages from any queue manager in the cluster ITALY can multi-hop to reach their destination at PALERMO. Any message put to a queue opened with the queue-manager name set to ROME in the open handle, is sent to the gateway queue manager, where the queue manager alias definition was made. Once there, it is put on the transmission queue X and moved by conventional, non-cluster channels to the queue manager PALERMO.
The choice of the name ROME in this example is not significant. The values for QREMOTE and RQMNAME could both be the same.
There are two reasons for using a queue-manager alias in this way:
Suppose you have a queue called EDINBURGH on more than one queue manager in the cluster, and you want the clustering mechanism to balance the workload for messages coming to that queue from outside the cluster.
A queue manager from outside the cluster needs a transmit queue and sender channel to one queue manager in the cluster, which is called a gateway queue manager. To take advantage of the default workload balancing mechanism, one of the following must apply:
For an example of this see Putting from a queue manager outside the cluster - alternative
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzah0729 |