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 » General Discussion » Usage of CorrelationId

Post new topic  Reply to topic
 Usage of CorrelationId « View previous topic :: View next topic » 
Author Message
vijkid
PostPosted: Mon Nov 03, 2003 3:22 am    Post subject: Usage of CorrelationId Reply with quote

Novice

Joined: 09 Oct 2003
Posts: 13

Dear All,
I need to post a messafe to queue and receive reply with reference to the same, The problem I have is I need to pick only the relavent reply for a user , as read it can be done by correlation id, but I have not used it before, can anybody help me on that as to when it is created when it is attached to the message how can i make it unique and how do i refer the sam when I receive the response back

Thanks In advance

Vijay Sharma
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Mon Nov 03, 2003 6:38 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

MQSeries has the ability to create unique message and correlation ids. Look at the MessageId and CorrelationID fields of the MQMD in the Application Programming Guide. As far as getting a unique ID, check out the Options field of the MQPMO. There are a couple of flags (MQPMO_NEW_MSG_ID, MQPMO_NEW_CORREL_ID). Your getting program can then get back a message by setting the MatchOptions of the MQGMO appropriately.
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 03, 2003 6:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I should have mentioned this earlier. There is an mqreqo.cpp and mqsrvo.cpp at http://www.developer.ibm.com/tech/sampmq.html. That manipulate the message/correlation id's between a reqeuster and server.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
vijkid
PostPosted: Mon Nov 03, 2003 7:02 am    Post subject: Using CorrId Reply with quote

Novice

Joined: 09 Oct 2003
Posts: 13

I have seen the example but not clear with it as i am new to MQ Series and secondly i have to quote the program in vb.net where no of options might differ, can u send me some instruction on 1) Setting MSG iD, Correlation id and setting the same when retreiving the message

Thanks

Vijay
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Wed Nov 05, 2003 5:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I can't help you with VB. I've never used it myself. I know that I've seen similar kinds of appends on the forums. Try searching.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Usage of CorrelationId
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.