+

Search Tips | Advanced Search

Queue aliases and clusters

Use queue aliases to hide the name of a cluster queue, to cluster a queue, adopt different attributes, or adopt different access controls.

A QALIAS definition is used to create an alias by which a queue is to be known. You might create an alias for a number of reasons:

Create a QALIAS definition on a queue manager using the DEFINE QALIAS command. For example, run the command:
DEFINE QALIAS(PUBLIC) TARGQ(LOCAL) CLUSTER(C)
The command advertises a queue called PUBLIC to the queue managers in cluster C. PUBLIC is an alias that resolves to the queue called LOCAL. Messages sent to PUBLIC are routed to the queue called LOCAL. We can also use a queue alias definition to resolve a queue name to a cluster queue. For example, run the command:
DEFINE QALIAS(PRIVATE) TARGQ(PUBLIC)

The command enables a queue manager to use the name PRIVATE to access a queue advertised elsewhere in the cluster by the name PUBLIC. Because this definition does not include the CLUSTER attribute it applies only to the queue manager that makes it.