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 » Remote Queue Def in a Cluster

Post new topic  Reply to topic Goto page Previous  1, 2
 Remote Queue Def in a Cluster « View previous topic :: View next topic » 
Author Message
TonyD
PostPosted: Thu Sep 26, 2002 3:21 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

I'm at a loss to understand what is wrong in your setup. I had deleted the test bed that I used a couple of days ago, but had no trouble recreating, both with MQExplorer and also with 'runmqsc'.
Here is an example of the message that went on to the Cluster XMITQ at QM2 when I put message on to FINALQ at QM2.
__________________________________________________________
AMQSBCG0 - starts here
**********************

MQOPEN - 'SYSTEM.CLUSTER.TRANSMIT.QUEUE'


MQGET of message number 1
****Message descriptor****

StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 546 CodedCharSetId : 437
Format : 'MQXMIT '
Priority : 0 Persistence : 0
MsgId : X'414D5120514D32202020202020202020BD96933D20000E02'
CorrelId : X'544F5F514D5F514D31202020202020202020202020202020'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'QM2 '
** Identity Context
UserIdentifier : 'Tony_Devitt '
AccountingToken :
X'0000000000000000000000000000000000000000000000000000000000000000'
ApplIdentityData : ' '
** Origin Context
PutApplType : '7'
PutApplName : 'QM2 '
PutDate : '20020926' PutTime : '23384939'
ApplOriginData : ' '

GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'

**** Message ****

length - 474 bytes

00000000: 5851 4820 0100 0000 4649 4E41 4C51 2020 'XQH ....FINALQ '
00000010: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000020: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000030: 2020 2020 2020 2020 514D 3320 2020 2020 ' QM3 '
00000040: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000050: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000060: 2020 2020 2020 2020 4D44 2020 0100 0000 ' MD ....'
00000070: 0000 0000 0800 0000 FFFF FFFF 0000 0000 '........ÿÿÿÿ....'
00000080: 2202 0000 B501 0000 4D51 5354 5220 2020 '"...µ...MQSTR '
00000090: 0000 0000 0000 0000 414D 5120 514D 3220 '........AMQ QM2 '
000000A0: 2020 2020 2020 2020 BD96 933D 2000 0E01 ' ½–“= ...'
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0000 0000 0000 2020 2020 '............ '
000000D0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000F0: 2020 2020 2020 2020 2020 2020 514D 3220 ' QM2 '
00000100: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000110: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000120: 2020 2020 2020 2020 2020 2020 546F 6E79 ' Tony'
00000130: 5F44 6576 6974 7420 1601 0515 0000 000D '_Devitt ........'
00000140: 6FE7 79E4 2317 7F5E 1FA9 49F8 1F00 0000 'oçyä#..^.©Iø....'
00000150: 0000 0000 0000 000B 2020 2020 2020 2020 '........ '
00000160: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000170: 2020 2020 2020 2020 0B00 0000 5765 6253 ' ....WebS'
00000180: 7068 6572 6520 4D51 5C62 696E 5C61 6D71 'phere MQ\bin\amq'
00000190: 7370 7574 2E65 7865 3230 3032 3039 3236 'sput.exe20020926'
000001A0: 3233 3338 3439 3339 2020 2020 5465 7374 '23384939 Test'
000001B0: 206D 6573 7361 6765 2074 6F20 4649 4E41 ' message to FINA'
000001C0: 4C51 2066 726F 6D20 514D 3220 7669 6120 'LQ from QM2 via '
000001D0: 514D 3120 746F 2051 4D33 'QM1 to QM3 '
_____________________________________________________________
: and here is the message on QM3.XMITQ at QM1, en route to QM3.


AMQSBCG0 - starts here
**********************

MQOPEN - 'QM3.XMITQ'


MQGET of message number 1
****Message descriptor****

StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 546 CodedCharSetId : 437
Format : 'MQXMIT '
Priority : 0 Persistence : 0
MsgId : X'414D5120514D312020202020202020201199933D20000802'
CorrelId : X'414D5120514D32202020202020202020BD96933D20000E01'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'QM2 '
** Identity Context
UserIdentifier : 'tony_devitt '
AccountingToken :
X'160105150000000D6FE779E423177F5E1FA949F81F000000000000000000000B'
ApplIdentityData : ' '
** Origin Context
PutApplType : '7'
PutApplName : 'QM1 '
PutDate : '20020926' PutTime : '23440087'
ApplOriginData : ' '

GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'

**** Message ****

length - 474 bytes

00000000: 5851 4820 0100 0000 4649 4E41 4C51 2020 'XQH ....FINALQ '
00000010: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000020: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000030: 2020 2020 2020 2020 514D 3320 2020 2020 ' QM3 '
00000040: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000050: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000060: 2020 2020 2020 2020 4D44 2020 0100 0000 ' MD ....'
00000070: 0000 0000 0800 0000 FFFF FFFF 0000 0000 '........ÿÿÿÿ....'
00000080: 2202 0000 B501 0000 4D51 5354 5220 2020 '"...µ...MQSTR '
00000090: 0000 0000 0000 0000 414D 5120 514D 3220 '........AMQ QM2 '
000000A0: 2020 2020 2020 2020 BD96 933D 2000 0E01 ' ½–“= ...'
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0000 0000 0000 2020 2020 '............ '
000000D0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000F0: 2020 2020 2020 2020 2020 2020 514D 3220 ' QM2 '
00000100: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000110: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000120: 2020 2020 2020 2020 2020 2020 746F 6E79 ' tony'
00000130: 5F64 6576 6974 7420 1601 0515 0000 000D '_devitt ........'
00000140: 6FE7 79E4 2317 7F5E 1FA9 49F8 1F00 0000 'oçyä#..^.©Iø....'
00000150: 0000 0000 0000 000B 2020 2020 2020 2020 '........ '
00000160: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000170: 2020 2020 2020 2020 0B00 0000 5765 6253 ' ....WebS'
00000180: 7068 6572 6520 4D51 5C62 696E 5C61 6D71 'phere MQ\bin\amq'
00000190: 7370 7574 2E65 7865 3230 3032 3039 3236 'sput.exe20020926'
000001A0: 3233 3338 3439 3339 2020 2020 5465 7374 '23384939 Test'
000001B0: 206D 6573 7361 6765 2074 6F20 4649 4E41 ' message to FINA'
000001C0: 4C51 2066 726F 6D20 514D 3220 7669 6120 'LQ from QM2 via '
000001D0: 514D 3120 746F 2051 4D33 'QM1 to QM3 '
_____________________________________________________________

If the messages on the Cluster XMITQ do not have an XQH heaer there is clearly something very wrong somewhere!
Back to top
View user's profile Send private message Send e-mail
aixmurderer
PostPosted: Fri Sep 27, 2002 10:05 pm    Post subject: Reply with quote

Newbie

Joined: 12 Aug 2002
Posts: 9

Yip...
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Oct 01, 2002 7:16 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

OK, here is where I am at now. Below is the set up once more:
**************************************************************
QM1 and QM2 are in ClusterA.
QM3 is not in any cluster, and has a local queue called FinalQ.

QM1 is the gateway to QM3. QM1 has an XMIT queue called QM3.XMIT. It has a
QM Alias called QM3, which maps to QM3.XMIT. I did the following on QM1:
DEFINE QREMOTE('QM3') RNAME(' ') RQMNAME(QM3) XMITQ(QM3.XMITQ)
CLUSTER(ClusterA)

DEFINE QLOCAL(QM3.XMIT) USAGE(XMITQ)

An app connected to QM2 needs to get messages to FinalQ / QM3. In its open
of FinalQ, it cannot specify the QM name, so I want to create a remote queue
definition on QM2 that points to FinalQ / QM3. So I did the following on
QM2:
DEFINE QREMOTE(FinalQ) RNAME('FinalQ') RQMNAME(QM3) XMITQ(' ')
CLUSTER(ClusterA)

But any messages I put to FinalQ on QM2 just sit in the
SYSTEM.CLUSTER.TRANSMIT.QUEUE.
*******************************************************************





If the remote queue def FinalQ on QM2 is part of cluster ClusterA, the messages get stuck in the SYSTEM.CLUSTER.TRANSMIT.QUEUE.

If I remove the cluster attribute from the remote def FinalQ on QM2, it works fine! Actually they end up on the DLQ on the gateway, but thats related to a problem with CSD04 (see below).

If I delete the remote queue def completly from QM2, and instead make it on the gateway (QM1), then it always works, whether it is clustered or not.

If I use the above setup on my local pc and make all the QMs local, it works any which way no problem.
Other people use the above setup with no problem. The common thing - no CSD04.




In the setup where I have the problem the version is 5.2.1 CSD04. The release notes for CSD05 include the following:
IY30457 - With CSD04 installed, if you put to a local queue
manager alias which resolved to a queue manager in a
cluster then the queue name was reset to blank. As a
result messages started going to the dead letter queue
instead of the destination queue on the final queue
manager. The reason code in the DLH when this happens
could have been either 2184 (MQRC_REMOTE_Q_NAME_ERROR)
or 2085 (MQRC_UNKNOWN_OBJECT_NAME).


Now this explains why my messages ended up on the DLQ when I tweaked the remote queue def to not be clustered -OR- to be on the Gateway. It does not explain why the messages get stuck (no header) in the cluster XMITQ if the remote queue def is clustered and not on the gateway.


To the people who took the time to duplicate my setup and it worked - what version of MQ were you at?
_________________
Peter Potkay
Keep Calm and MQ On


Last edited by PeterPotkay on Tue Oct 01, 2002 9:51 am; edited 1 time in total
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Oct 01, 2002 8:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I am running 5.2 (no CSDs applied). But I tried it on my PC with all QMGRs on one machine

---
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TonyD
PostPosted: Tue Oct 01, 2002 3:09 pm    Post subject: ...and I am running 5.3 for NT (no CSDs) Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

(NT)
Back to top
View user's profile Send private message Send e-mail
TonyD
PostPosted: Tue Oct 01, 2002 3:10 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

...5.3 for NT (no CSDs)....
Back to top
View user's profile Send private message Send e-mail
oz1ccg
PostPosted: Mon Oct 07, 2002 12:04 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Hi Peter,

When you created :
Quote:
DEFINE QREMOTE(FinalQ) RNAME('FinalQ') RQMNAME(QM3) XMITQ(' ')
CLUSTER(ClusterA)
on QM2, you've actually created a QMGRALIAS, saying that QM2 is also know now AS QM3.

The QREMOTE definition is very complicated to use, because of the many different ways it can act as. I've spned a lot of time discussing this command i our local MQ-community, and how to use it, and pros and cons.

Some time ago this topic was discussed, and I created a small working sample, with the stanza' for download and a bit of an description, feel free to take a look :
http://d1o112.dk.telia.net/~u149101068/cluster_qmb_3.htm

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Clustering » Remote Queue Def in a Cluster
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.