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 » IBM MQ API Support » Specifiying MQ MESSAGE_options

Post new topic  Reply to topic
 Specifiying MQ MESSAGE_options « View previous topic :: View next topic » 
Author Message
srk31
PostPosted: Tue Nov 02, 2010 3:33 pm    Post subject: Specifiying MQ MESSAGE_options Reply with quote

Apprentice

Joined: 01 Sep 2010
Posts: 39

Hi,
I want to get the message by using correlationId, how to i specify
this by using MatchOptions=??
Back to top
View user's profile Send private message
srk31
PostPosted: Tue Nov 02, 2010 4:11 pm    Post subject: Reply with quote

Apprentice

Joined: 01 Sep 2010
Posts: 39

Can i specify correlation Id using the following way

MQC.MQMO_MATCH_CORREL_ID = 12345
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Nov 02, 2010 4:19 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

No.

You specify MQC.MQMO_MATCH_CORREL_ID in the MatchOptions field.

Then you set the CorrelId field fo the MQMD you pass to MQGET to contain the value you want to match against.

Go back to the sample programs. Read them three or four times again.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 02, 2010 6:51 pm    Post subject: Reply with quote

Grand High Poobah

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

srk31 wrote:
Can i specify correlation Id using the following way

MQC.MQMO_MATCH_CORREL_ID = 12345


And of course a correl id wouldn't be "12345" because:

- it's too short
- it's a string not a series of bytes
- it's clearly not been generated by a queue manager and no-one would be silly enough to just assign a value
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Specifiying MQ MESSAGE_options
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.