Author |
Message
|
thebeach |
Posted: Thu Sep 29, 2005 8:41 am Post subject: Configuring MQ for COAs |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 47
|
Hi all,
I need some help on COAs!
If I send a message from QM1 to QM2, does QM2 need a QM alias and sender channel for the COA to flow back to QM1?
Or is the COA handled by the MCAs, thus no QM2>QM1 channel is required?
What if there is an intermediate QM between the sender and receiver?
Are there any example setups in the manuals, I've had a search, to no avail.
Thanks in advance! |
|
Back to top |
|
 |
wschutz |
Posted: Thu Sep 29, 2005 8:47 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
You need a normal "path" (ie, xmitq, channels) from the point where the COA is generated back to the "replytoQ" qmgr. _________________ -wayne |
|
Back to top |
|
 |
EddieA |
Posted: Thu Sep 29, 2005 11:30 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
Are there any example setups in the manuals, I've had a search, to no avail |
Assume that the QM sending the COA is a "normal" MQ application that PUTs a message using both a QM and Queue. The Intercommunication manual will explain how this works.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
thebeach |
Posted: Thu Oct 06, 2005 9:13 am Post subject: |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 47
|
Thanks! However...
A message arrives on QM1 from QM2. I need a COA to return to queue Q-COA on QM2, so I need a path (xmit and channel) back to QM2.
If I create an xmit queue on QM1(name of QM2) and channel dedicated for the COA I'm sure this will work.
But can I send it down an existing SDR channel to QM2, which has an unrelated xmitq name, eg XX?
I've tried this, but get a 2087 message(unknown remote QM) on QM1.
Do I need to have an alias on QM1? ie def qr(QM2) xmitq(XX) ??
Thanks in advance all. |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 06, 2005 9:35 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
thebeach wrote: |
But can I send it down an existing SDR channel to QM2, which has an unrelated xmitq name, eg XX?
I've tried this, but get a 2087 message(unknown remote QM) on QM1.
Do I need to have an alias on QM1? ie def qr(QM2) xmitq(XX) ?? |
Of course you can send it in the same channel, all traffic between QMs can go through the same chl pair - a report is a normal MQ message, MQMD and all, and channels don't really care what the content is. Reports are generated by channels, and channels are regular MQI programs - when they see a report flag, they generate the report message and put it to ReplyToQ, and if filled - to ReplyToQmgr.
Concerning the 2087, it all depends in the sending application (the one that marked the COA flag) and in definitions on your remote qm (QM1). If you had filled out RemoteQmgrName=QM2 in the sending application or some QREMOTE definition (which it seems you did), then normal rules apply: Either have a QM alias, or have an XMITQ in the name of the remote qm. In your case, if you use XX you must have a QM alias. |
|
Back to top |
|
 |
EddieA |
Posted: Thu Oct 06, 2005 10:11 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
and if filled - to ReplyToQmgr |
Actually, I think it's impossible not to have a ReplyToQmgr. (But willing to be proved wrong ). If you specify one, then that's it. If you don't fill in a value, then MQ fills it in for you on the PUT.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 06, 2005 11:07 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
Yea, you're right, it is indeed filled out automatically, but I know certain programmer tend to set it to an empty string - what I meant is that he should check with the sending application how treat this field.... |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Oct 06, 2005 12:29 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
thebeach wrote: |
But can I send it down an existing SDR channel to QM2, which has an unrelated xmitq name, eg XX?
I've tried this, but get a 2087 message(unknown remote QM) on QM1.
Do I need to have an alias on QM1? ie def qr(QM2) xmitq(XX) ??
|
Yes.
Any message looking for QM2 will catch your Qm Alias and go to XMITQ XX, which feeds the channel you want. This is how we do ALL our XMITQs.
QM1.XMITQ is the actualy XMITQ.
Then we create a QM1 QM Alias that feeds it. In this fashion, we can easily reroute all traffic looking for QM1 to QM1a if we want to. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
thebeach |
Posted: Fri Oct 07, 2005 6:26 am Post subject: |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 47
|
|
Back to top |
|
 |
|