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 » How to set bthe corelation ID.

Post new topic  Reply to topic
 How to set bthe corelation ID. « View previous topic :: View next topic » 
Author Message
prat31
PostPosted: Wed Sep 18, 2013 6:13 am    Post subject: How to set bthe corelation ID. Reply with quote

Apprentice

Joined: 01 Feb 2013
Posts: 30

Hi All,

How can I assign a Correlation Id of 11 in the output message.


Thanks...
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 6:15 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

prat31 wrote:
Hi All,

How can I assign a Correlation Id of 11 in the output message.


Thanks...


SET MQMD.CorrelId = 'some Id';

Or- you could look it up in the documentation.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 18, 2013 6:26 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
prat31 wrote:
Hi All,

How can I assign a Correlation Id of 11 in the output message.


Thanks...


SET MQMD.CorrelId = 'some Id';


No you don't - a CorrelId is not a string and shouldn't be treated as such. You should know better.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 18, 2013 6:28 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

prat31 wrote:
How can I assign a Correlation Id of 11 in the output message.


You shouldn't want to. A correlation id is a byte array not a string and you should not be assigning a string to it. Furthermore you should be correlating on a message or other id not an arbitrary value.

Why do you think you need to do this?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 6:29 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
lancelotlinc wrote:
prat31 wrote:
Hi All,

How can I assign a Correlation Id of 11 in the output message.


Thanks...


SET MQMD.CorrelId = 'some Id';


No you don't - a CorrelId is not a string and shouldn't be treated as such. You should know better.


Hence my prompt to refer to the doc.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 18, 2013 6:35 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
Hence my prompt to refer to the doc.


And your endorsement of the techique with a code snippit demonstrating a string being assigned was because?

Why would the OP bother to look in the doc when the code snippit clearly showed what they needed and the documentation an alternative (unless "or" means something else to you)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 6:38 am    Post subject: Re: How to set bthe corelation ID. Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
lancelotlinc wrote:
Hence my prompt to refer to the doc.


And your endorsement of the techique with a code snippit demonstrating a string being assigned was because?

Why would the OP bother to look in the doc when the code snippit clearly showed what they needed and the documentation an alternative (unless "or" means something else to you)?


Ok, I relent. There is much more to setting the CorrelId than assigning a string. But if the OP wants us to post a code snippet or a Google link, then I think thats not the right action either. The OP should exercise his brain to derive the information. Which is that the CorrelId is a 24 byte blob, not a character string, therefore, some field conversion needs to happen to strings. And the result must be exactly 24 bytes, so some filler may be required.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to set bthe corelation ID.
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.