|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Queuue manager alias |
« View previous topic :: View next topic » |
Author |
Message
|
gobi_nathan |
Posted: Fri Jan 31, 2003 2:12 am Post subject: Queuue manager alias |
|
|
Acolyte
Joined: 08 Jan 2003 Posts: 69
|
Hi,
Can anyone tell me the detailed steps to create the Queue manger alias.
I have the Queue mangers QM1,QM2.I want Queue manger QM2 to use QM1_alias to post the message into some queue in QM1.
-gobi |
|
Back to top |
|
 |
pgorak |
Posted: Fri Jan 31, 2003 3:06 am Post subject: |
|
|
 Disciple
Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland
|
Queue manager alias is actually a remote queue definition. To do what you are asking about you need issue the following MQSC command on QM2:
DEFINE QREMOTE(QM1_alias) RQMNAME(QM2)
Now, let's say you have a remote queue "Q1" defined on QM2, which allows for sending messages to QM1. If QM2 receives a message with target queue manager name "QM1_alias" and target queue name "Q1", the message is forwarded to QM1.
Piotr |
|
Back to top |
|
 |
yaakovd |
Posted: Fri Jan 31, 2003 12:31 pm Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Actualy Piotr described alias to on QM2 to itself. In this case you still need create remote queues om QM2 for each destination Q on QM1.
When you need alias?
1. If your remote QMgr always changed depend configuration.
2. If you have big namber of remote Q-s
3. both cases
Create remote queue "QM1_alias" with blank Remote Q Name and "QM1" as remote QMgr name: DEFINE QREMOTE(QM1_alias) RQMNAME(QM1)
Create transmition Q QM1.
In message define destination Q name as wanted Q name on QM1 (don't define additional remote Q on QM2). Define destination QMgr name as QM1_alias.
Send the message to QM1_alias on QM2.
What really happend?
MQSeries compare destination QMgr name with current QMgr name (not found), looking for Q with name as destination QMgr - in regular it will be XMit Q, but remote Q is "good enough" .
When a message "contacted" with any remote Q, destination parameters is replaced by parameters in Q. In case of alias (blank remote Q name) only destination QMgr name will be replaced QM1_alias --> QM1.
This scenario working properly 2 years in all our environments.
It also usefully for failover configuration.
Let me know if you have some problem. _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|