Author |
Message
|
vivica12 |
Posted: Fri Jul 13, 2007 12:31 pm Post subject: MQ Cluster issue via Remote Queue |
|
|
Acolyte
Joined: 13 Jul 2007 Posts: 58
|
I have a qmgr - QM1, which is a single node.
I have a gateway qmgr QMGW1, and 2 other qmgrs in a cluster. Queue Q5 exists in the 2 other qmgrs in this cluster, as a clustered queue.
I have a remote queue definition on QM1 with RMNAME=Q5 and RQMNAME=QMGW1.
When I do a put to the remote queue on QM1, it should end up on Q5 on one of the 2 qmgrs in the cluster. Instead it ends up in the Dead Letter queue on QMGW1, with an MQRC_UNKNOWN_OBJECT_NAME error.
So I know that the gateway is trying to find the RMNAME=Q5 locally, instead of in the clustered repository. But that's not how it's supposed to work.
If I do a direct amqsput to Q5, through the gateway, it works just fine. So this is only an issue when using a remote queue definition.
(I have also done tests to rule out sdr/rcvr/xmitq issues, and this all functions properly using remote Q to local Q on GW)
Any thoughts? _________________ Vivica - signing off |
|
Back to top |
|
 |
mqperson |
Posted: Fri Jul 13, 2007 1:14 pm Post subject: |
|
|
Apprentice
Joined: 10 Jan 2006 Posts: 32
|
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 13, 2007 2:34 pm Post subject: Re: MQ Cluster issue via Remote Queue |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
vivica12 wrote: |
I have a qmgr - QM1, which is a single node.
I have a gateway qmgr QMGW1, and 2 other qmgrs in a cluster. Queue Q5 exists in the 2 other qmgrs in this cluster, as a clustered queue.
I have a remote queue definition on QM1 with RMNAME=Q5 and RQMNAME=QMGW1.
When I do a put to the remote queue on QM1, it should end up on Q5 on one of the 2 qmgrs in the cluster. Instead it ends up in the Dead Letter queue on QMGW1, with an MQRC_UNKNOWN_OBJECT_NAME error.
So I know that the gateway is trying to find the RMNAME=Q5 locally, instead of in the clustered repository. But that's not how it's supposed to work. |
That's exactly how it is supposed to work.
Check your remote qdef....
What you need to do is RQMNAME=MYCLUSTER and on the GWY:
def qr(MYCLUSTER) (mark no rname and no rqmname nor xmitq). This acts then as a cluster alias when trying to resolve the destination. Works wonders for me....
Read up the intercommunications manual on queue manager alias ...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Michael Dag |
Posted: Sun Jul 15, 2007 1:33 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
on QM1 you need a remote q def Q5 RMNAME=Q5 and RQMNAME=QMGW1ALIAS
on QMGW1 you need a remote q def QMGW1ALIAS RMNAME=' ' and RQMNAME=' '
when the message for Q5 hits QMGW1 the QMGW1ALIAS will cause the Qmgr to start looking for Q5 without a specific Qmgrname and will find the clustered Q5 queues... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
vivica12 |
Posted: Mon Jul 16, 2007 6:27 am Post subject: |
|
|
Acolyte
Joined: 13 Jul 2007 Posts: 58
|
That worked!!
Thanks for your help. _________________ Vivica - signing off |
|
Back to top |
|
 |
mqperson |
Posted: Mon Jul 16, 2007 2:17 pm Post subject: |
|
|
Apprentice
Joined: 10 Jan 2006 Posts: 32
|
If I had Q5 defined on the GWY as well and shared in the cluster, will the messages round-robin between the gwy and the other 2 qmgrs ? |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Jul 16, 2007 9:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
mqperson |
Posted: Tue Jul 17, 2007 10:18 am Post subject: |
|
|
Apprentice
Joined: 10 Jan 2006 Posts: 32
|
Thanks Michael. Thats very useful info! |
|
Back to top |
|
 |
|