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 » WebSphere Message Broker (ACE) Support » confusion in correlId

Post new topic  Reply to topic Goto page 1, 2  Next
 confusion in correlId « View previous topic :: View next topic » 
Author Message
datspats
PostPosted: Mon Nov 12, 2007 5:26 am    Post subject: confusion in correlId Reply with quote

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
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Mon Nov 12, 2007 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Nov 12, 2007 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message
datspats
PostPosted: Mon Nov 12, 2007 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Nov 12, 2007 6:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Message Context:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04570_.htm

Properties.ReplyIdentifier
if you have updated a field in both the properties folder and the header with different values, the value that you set in the header is overwritten by the value that you set in the properties folder.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
datspats
PostPosted: Mon Nov 12, 2007 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Nov 12, 2007 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
datspats
PostPosted: Mon Nov 12, 2007 8:34 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Nov 12, 2007 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message
datspats
PostPosted: Mon Nov 12, 2007 9:01 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
bower5932
PostPosted: Mon Nov 12, 2007 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bower5932
PostPosted: Mon Nov 12, 2007 9:09 am    Post subject: Re: confusion in correlId Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
datspats
PostPosted: Mon Nov 12, 2007 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
EddieA
PostPosted: Mon Nov 12, 2007 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
datspats
PostPosted: Mon Nov 12, 2007 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » confusion in correlId
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.