|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Alias Q question |
« View previous topic :: View next topic » |
Author |
Message
|
WBI_user |
Posted: Thu Apr 10, 2014 8:18 pm Post subject: Alias Q question |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I just come across a alias q definition with the target name the same as the alias q name sharing in cluster(ABC)
DEF QA(MY.QA) TARGET(MY.QA) CLUSTER(ABC)
What is the purpose of defining a QA with the Target pointing to itself. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Apr 12, 2014 3:42 pm Post subject: Re: Alias Q question |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
WBI_user wrote: |
I just come across a alias q definition with the target name the same as the alias q name sharing in cluster(ABC)
DEF QA(MY.QA) TARGET(MY.QA) CLUSTER(ABC)
What is the purpose of defining a QA with the Target pointing to itself. |
Where did you come across it?
Defining a QAlias with the TARGET pointing to itself will fail with ReasonCode 2001 MQRC_ALIAS_BASE_Q_TYPE_ERROR in any attempt to MQOPEN it. As such, it serves no useful purpose.
Did you mean DEF QA(MY.QA) TARGET(MY.QL) CLUSTER(ABC)? The purpose of such a definition is to make the QAlias MY.QA known to all qmgrs in the cluster ABC. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
tczielke |
Posted: Sat Apr 12, 2014 9:23 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
We use this set up like this in our MQ environment:
DEF QA(MY.QA) TARGET(MY.QA) CLUSTER(ABC)
We use it for the following scenario:
qmgr1 in network 1 that participates in cluster NET1 wants to PUT to queue MY.QA that is a local cluster queue in a cluster called NET2 on qmgr2 in network 2.
qmgr1 in network 1 is not allowed to talk to qmgr2 in network 2 per firewall policies. However, there is a qmgr 3 that participates in both clusters NET1 and NET2 and can talk to both qmgr1 and qmgr 2. So the following is configured:
DEFINE QA(MY.QA) TARGET(MY.QA) CLUSTER(NET1) on qmgr3 with a CLWLRANK(0).
DEFINE QL(MY.QA) CLUSTER(NET2) on qmgr2.
Now when an app on qmgr1 opens and puts to MY.QA, qmg1 will see the alias definition on qmgr3 and send the message to qmgr3. qmgr3 will then see the local cluster definition with a higher rank on qmgr2 and send the message to MY.QA on qmgr2.
Also, you will not get a 2001 when you open a DEF QA(MY.QA) TARGET(MY.QA) CLUSTER(ABC), if MY.QA can resolve to a cluster queue on another server. I have confirmed that on my Sandbox MQ servers. |
|
Back to top |
|
 |
tczielke |
Posted: Sat Apr 12, 2014 9:25 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
I forgot to mention in my last post that MY.QA on qmgr2 had a CLWLRANK of 5. |
|
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
|
|
|
|