|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Usage of CorrelationId |
« View previous topic :: View next topic » |
Author |
Message
|
vijkid |
Posted: Mon Nov 03, 2003 3:22 am Post subject: Usage of CorrelationId |
|
|
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 |
|
 |
bower5932 |
Posted: Mon Nov 03, 2003 6:38 am Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Mon Nov 03, 2003 6:45 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
vijkid |
Posted: Mon Nov 03, 2003 7:02 am Post subject: Using CorrId |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Nov 05, 2003 5:18 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|