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 » When to use message ID and when to use correlation ID

Post new topic  Reply to topic
 When to use message ID and when to use correlation ID « View previous topic :: View next topic » 
Author Message
Joshva
PostPosted: Tue Apr 22, 2003 5:46 pm    Post subject: When to use message ID and when to use correlation ID Reply with quote

Newbie

Joined: 22 Apr 2003
Posts: 1

I was wondering if anyone had some official documentation about when to use message ID to match a response message to a request message and when to use correlation ID to do this??


Thanks for your time, Josh
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Apr 23, 2003 2:14 am    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

MQ always uses CORRELID for matching response and request (for example in its reports)

In general, MSGID is for identifying a message and CORRELID for matching response and request. But you can use both IDs for whatever purpose you want.
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Apr 23, 2003 7:03 am    Post subject: Reply with quote

Jedi Knight

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

From the Application Programming Guide:
Quote:

You can use the correlation identifier in any way you like. However, an intended use of this field is for applications to copy the message identifier of a request message into the CorrelId field of a reply message.

Also, there are some MQRO_* defines in cmqc.h that can be used by a requester to indicate to a server how to pass back message id/correlation id.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
HrothgarV
PostPosted: Thu Apr 24, 2003 6:48 am    Post subject: Reply with quote

Novice

Joined: 07 Apr 2003
Posts: 17

you may use the msgid as a unique identifier for each message you send to another party. then the other party may then populate the correlid with your original msgid when replying. this example ensures uniqueness and simple way of tracking messages you exchange with another party.
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 » General Discussion » When to use message ID and when to use correlation 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.