Author |
Message
|
datspats |
Posted: Mon Nov 12, 2007 5:26 am Post subject: confusion in correlId |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
I am setting as CorrelId as some value.
DECLARE number DECIMAL;
SET number = 102;
Set OutputRoot.MQMD.CorrelId = operation_to_get_24Byte(number);
The output of the MQGEt is
****Message descriptor****
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 273 CodedCharSetId : 819
Format : 'MQXMIT '
Priority : 0 Persistence : 1
MsgId : X'414D5120424D5553454D3320202020204714A35B208B4902'
CorrelId : X'414D5120424D5553454D3320202020204714A35B208AA02F'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'ABC '
** Identity Context
UserIdentifier : 'XYZ '
AccountingToken :
X'0532383534320000000000000000000000000000000000000000000000000006'
ApplIdentityData : ' '
** Origin Context
PutApplType : '7'
PutApplName : 'ABC '
PutDate : '20071108' PutTime : '15544486'
ApplOriginData : ' '
GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
**** Message ****
length - 16161 bytes
/* some initial entries */
00000050: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
00000060: 2020 2020 2020 2020 4D44 2020 0000 0001 ' MD ....'
00000070: 0000 0000 0000 0008 FFFF FFFF 0000 0000 '................'
00000080: 0000 0111 0000 0333 4D51 4852 4632 2020 '.......3MQHRF2 '
00000090: 0000 0000 0000 0001 414D 5120 424D 5553 '........AMQ XXXX'
000000A0: 454D 3320 2020 2020 4714 A35B 208A A02F 'XX3 G..[ ../'
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0066 0000 0000 2020 2020 '.......f.... '
000000D0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
000000E0: 2020 2020 2020 2020 2020 2020 2020 2020 ' '
/* some last entries...........*/
I have confusion how the Correld Id is different as i can see in the message dump on line
000000B0 and 000000C0 as my correldId properly set HEX(102) = 66, but the Message header shows
CorrelId : X'414D5120424D5553454D3320202020204714A35B208AA02F' which is also presents on line 00000090 and
000000A0.
Please help if my concepts are not clear!
Regards |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 12, 2007 5:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
There are any number of posts in the forum about why setting message or correl id is a bad idea.
Is an MQOutput node set to generate a new Correl Id? Or the MQMD being copied from another source? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 12, 2007 5:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please don't use correlationId to hold business level data.
What options did you specify on Message Context?
Did you set OutputRoot.Properties.ReplyIdentifier=NULL? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 6:08 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
Quote: |
What options did you specify on Message Context?
Did you set OutputRoot.Properties.ReplyIdentifier=NULL? |
hi jeff,
I have not done the above operations, But I would like to know what has caused the above on correld? what has gone wrong with my interpretation |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 12, 2007 6:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 8:20 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
Hi jeff,
Thanks, but
what does
Quote: |
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0066 |
this value means shown in the MQ message dump
Regards |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 12, 2007 8:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I don't know what it means.
What did you specify in the message body? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 8:34 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
Hi jeff
this is certainly not the part of the Message body, it is part of header
Please check for line 000000B0 and 000000C0 in my first message
Regards |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Nov 12, 2007 8:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
That looks like it's in the area of the output from amqsbcg that shows the contents of the message body. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 9:01 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
No it is very sure that it is not message body as there are several line follows after this which it has the MQMD header field also MQRFH2 header field as well. I have taken out that portion only.
I am setting correlId as 00......0066 (24 byte array). That is the confusion as message tree shows some value in correlId where message dump from amqsbcg has what the value I expect as correld Id
Again
Message tree from amqsbcg
Quote: |
MsgId : X'414D5120424D5553454D3320202020204714A35B208B4902'
CorrelId : X'414D5120424D5553454D3320202020204714A35B208AA02F'
|
and message dump (plz check from line 00000090 onwards)
00000060: 2020 2020 2020 2020 4D44 2020 0000 0001 ' MD ....'
00000070: 0000 0000 0000 0008 FFFF FFFF 0000 0000 '................'
00000080: 0000 0111 0000 0333 4D51 4852 4632 2020 '.......3MQHRF2 '
00000090: 0000 0000 0000 0001 414D 5120 424D 5553 '........AMQ BMUS'
000000A0: 454D 3320 2020 2020 4714 A35B 208A A02F 'EM3 G..[ ../'
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0066 0000 0000 2020 2020 '.......f.... ' |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Nov 12, 2007 9:07 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Are you sure that your 'MD' at line 060 isn't a chained header? If you'll run amqsbcg with a message that you used amqsput to put, you'll see that the message body is what is at line 060. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Nov 12, 2007 9:09 am Post subject: Re: confusion in correlId |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I should have looked at your initial append a little closer:
datspats wrote: |
Format : 'MQXMIT ' |
It appears that you are browsing the transmit queue? |
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 9:13 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
ok. but the concern was how I can see both correld value as per message tree and the value I assign manually in the message dump. |
|
Back to top |
|
 |
EddieA |
Posted: Mon Nov 12, 2007 9:40 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
102 decimal = x'66'
And if you need to see the layout of an MQMD, then try looking in the manual where IBM took great pains to document this for you.
Cheers. _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
datspats |
Posted: Mon Nov 12, 2007 10:10 am Post subject: |
|
|
Voyager
Joined: 12 Apr 2007 Posts: 80 Location: Mumbai
|
Hi eddieA
Please correct me, from google i got as message layout in the byte order
first byte[24] - original msg correlid (msg correlationid
provided by the sending application)
second byte[24] - message correlid (generated correlationid for
the msg)
so from my message dump
00000090: 0000 0000 0000 0001 414D 5120 424D 5553 '........AMQ BMUS'
000000A0: 454D 3320 2020 2020 4714 A35B 208A A02F 'EM3 G..[ ../'
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
000000C0: 0000 0000 0000 0066
original msg correlid : 414D 5120 424D 5553 454D 3320 2020 2020 4714 A35B 208A A02F
message correlid : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0066
So if receiving appln read the correld from the message Will it read as (InputRoot.MQMD.correlID) = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0066 ?
Please reply
Regards |
|
Back to top |
|
 |
|