|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
QManager Alias |
« View previous topic :: View next topic » |
Author |
Message
|
Gopi |
Posted: Fri May 31, 2002 9:12 pm Post subject: QManager Alias |
|
|
Novice
Joined: 23 May 2002 Posts: 18
|
Here i have question.
there are 2 QMgrs QMgr1, QMgr2.
on QMgr1 i have Q1 , on QMgr2 i have Q2. Q3.
So client app at QMgr1 puts message on Q1...In this scenario , no confussion.
How can Clent App at QMGr1 wants to put msg on Q3 of QMGr2?( i want my client app to put message on Q3 only , not on Q2)
For this :
If i create Remote Q definition for Q3 on Qmgr1 , then we can put the message without any confussion.
But can i perform this, by creating only QManager Alias?
I want to create Qmanager Alias of QMGr2 on QMGr1.
so when i define Qmanager alias, i should not specify RNAME field. right?
like :At QMGr1:, QManager alias look as :
DEFINE QREMOTE(Q3) , RNAME(''), RQNAME(QMgr2)
so my question is if we dont specfy the name of the destination Q..as Q3, How doest the message in the transmission Q at QMgr1 will be sent to Q3 at QMgr2? bcoz on QMGr2 there are two Qs available.(Q2 & Q3) , How do the Qmgr1 is going to change the transmission header? I mean how do the Qmanger1 can know that client app , want to put message only on Q3 at Qmgr2?
I will be thankful for ur help...
Gopi. |
|
Back to top |
|
 |
oz1ccg |
Posted: Mon Jun 03, 2002 12:53 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi Gopi,
What you have created is a QMGR Alias... but the qmgr you've created is Q3
Quote: |
DEFINE QREMOTE(Q3) RNAME('') RQNAME(QMgr2) |
I guess wgat you would have done was somthing like:
DEFINE QREMOTE(QMgr2) RNAME('') RQNAME(QMgr2) XMITQ(xmit2QMgr2)
or
DEFINE QLOACL(QMgr2) ... usage(XMIT)
then it's posible for you on the MQPUT to specify the QMGR parameter,m and the message is flowing to QMgr2 due to MQSeries name resolution.
I hope it helps you. _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
Gopi |
Posted: Mon Jun 03, 2002 1:57 pm Post subject: |
|
|
Novice
Joined: 23 May 2002 Posts: 18
|
Hi,
Thanks for ur reply..but still i do have some confussion, if you dont mind, can you please gimme some more info..??here is my question...
I appreciate your help...
thanks in advance..
Quote: |
DEFINE QREMOTE(QMgr2) RNAME('') RQNAME(QMgr2) XMITQ(xmit2QMgr2)
or
DEFINE QLOACL(QMgr2) ... usage(XMIT) |
Well, If idefine as you said (as shown above), How do Qmgr1 knowns whether client app wants to put message only on Q3? Even in the above QMgr Alias def , we haven't specified any dest Q .. right? But at the destination QMgr, (ie QMgr2) we do have two Qs(Q2 & Q3).
Ok lets assume that Client app, puts message on QMgr2 alias, at QMgr1. Now what happens is QMgr1 resolves it and places on its Transmission Q, xmit2QMgr2 located at Qmr1. Now the Message will be carried out by the MCA, to QMgr2. And at this point how do the QMr2 knows the message has to be placed on Q3 only. and not on Q2?
Thanks ,
Gopi. |
|
Back to top |
|
 |
oz1ccg |
Posted: Mon Jun 03, 2002 11:05 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi Gopi,
Well in the case where you don't want anybody of Qmgr1 to be able to put anything to Q2, if that is the case... lets assume that.
All what you will have to do is make QREMOTE on the queues you want to expose, and no Qmgr alias definitions(or name the xmit queue as the target qmgr), because when you make a Qmgr-alias definition you allow MQSeries to try to find the right qmgr for the data.
Lets say Qmgr1 only contains:
QLOCAL(Q1)
QREMOTE(Q3) RNAME(Q3) RQNAME(Qmgr2) XMITQ(xmit2QMgr2)
QLOCAL(xmit2QMgr2) usage(XMITQ)
CHANNEL SENDER...... XMITQ(xmit2QMgr2)
what happens if the client appl tries to send data to Q3 on Qmgr2 (objname=Q3 and Objqmgrname=Qmgr2), the application will receive rc=2085 (MQRC_UNKNOWN_OBJECT_NAME) and you're happy.
what happens if the client appl tries to send data to Q2 (objname=Q2), the application will receive rc=2085 (MQRC_UNKNOWN_OBJECT_NAME) and you're still happy.
what happens if the client appl tries to send data to Q3 on Qmgr1 (objname=Q3), the application will receive MQRC_OK and you're happy.
By the way what about using security to handle the issue ?
Just my $0.02 _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
Gopi |
Posted: Wed Jun 05, 2002 5:34 am Post subject: |
|
|
Novice
Joined: 23 May 2002 Posts: 18
|
Hi,
That's cool.
Thanx a lot for your response.
Gopi. |
|
Back to top |
|
 |
MQbeginner |
Posted: Thu Sep 18, 2003 7:33 pm Post subject: QManager Alias |
|
|
Newbie
Joined: 18 Sep 2003 Posts: 1
|
Hi,
I have the same prb that Gopi was talking about, but I am trying to use QManager Alias.
Assume the folowing.
On QMgr2 I have only Q3 and I have an application at QMgr1 that tries to put a mess on Q3 of QMgr2 using QManager Aliasing. what QManager name & Qname do I need to specify in the application? Also how does the application knows to put a mess in Q3 of QMgr3 as we do not specify the Rname in the Qremote definition.
Can some one please explain how exactly Qmanager Aliasing works..?
Thanks,
Madhu. |
|
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
|
|
|
|