ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Clustering » Alias Q question

Post new topic  Reply to topic
 Alias Q question « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Thu Apr 10, 2014 8:18 pm    Post subject: Alias Q question Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sat Apr 12, 2014 3:42 pm    Post subject: Re: Alias Q question Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
View user's profile Send private message
tczielke
PostPosted: Sat Apr 12, 2014 9:23 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
tczielke
PostPosted: Sat Apr 12, 2014 9:25 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

I forgot to mention in my last post that MY.QA on qmgr2 had a CLWLRANK of 5.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » Alias Q question
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.