Home
Queue aliases
A QALIAS definition is used to create an ALIAS by which a queue is to be known. You might do this if, for example, you want to start using a different queue but you do not want to change your applications. You might also do this if for some reason you do not want your applications to know the real name of the queue to which they are putting messages, or because you have a naming convention that differs from the one where the queue is defined. Another reason might be security; your applications might not be authorized to access the queue by its real name but only by its alias.
You create a QALIAS definition on a queue manager using the DEFINE QALIAS command. For example, the command:
DEFINE QALIAS(PUBLIC) TARGQ(LOCAL) CLUSTER(C)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 the command:
DEFINE QALIAS(PRIVATE) TARGQ(PUBLIC)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.
Parent topic:
Using aliases and remote-queue definitions with clusters
qc10810_
Home