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 IBM MQ Support » MessageId Vs CorrelationID for request reply

Post new topic  Reply to topic
 MessageId Vs CorrelationID for request reply « View previous topic :: View next topic » 
Author Message
tapak
PostPosted: Thu Aug 03, 2006 12:13 pm    Post subject: MessageId Vs CorrelationID for request reply Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

There is 4 ways we can set the message id and correlationid for request - reply . Is there any benefit on each method or is the common practice to configure with Method 3 given below.

Here is the different methods .
1. Sending request with a message id and recieving the reply with matching MessageId.

2. Sending request with a correlation id and recieving the reply with the matching CorrelationId.

3. Sending request with a message id and recieving the reply with the same message id in the Correlation id of the reply message ..

4. Sending request with a correlation id and recieving the reply with the same correlation id in the Message id of the reply message ..
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Aug 03, 2006 12:25 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

3 is a good practice.
Usually you let the QMGR create the MesssageID, and you will have unique values across. That leaves the only choice you have is 3.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tapak
PostPosted: Thu Aug 03, 2006 12:41 pm    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Thank you for explaining the reason for using option 3.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 03, 2006 1:17 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In all cases, one can allow the qmgr to create the MsgId or the CorrelId. This will ensure that the id

Only in case 1 will the Message ID ever be duplicated on network.

Only in case 2 will Correlation ID be duplicated on network.

Case 3 is the recommended approach, and what the samples show.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 03, 2006 3:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

However you might have multihopping between your services.

Common practice for a service provider is to do following:

a) if the request message has no correlationId (MQMI_NONE) the reply message's correlationId will be the request messageId.

b) if the request message has a correlationId the reply message will have the same correlationId.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tapak
PostPosted: Fri Aug 04, 2006 6:05 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

fjp_saper .

I agree with you . Option 2 and 3 give a unique message id to each message to track the message .
Back to top
View user's profile Send private message
tleichen
PostPosted: Fri Aug 04, 2006 12:00 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

jefflowrey wrote:
In all cases, one can allow the qmgr to create the MsgId or the CorrelId. This will ensure that the id

Only in case 1 will the Message ID ever be duplicated on network.

Only in case 2 will Correlation ID be duplicated on network.

Case 3 is the recommended approach, and what the samples show.


Case 3 is also the way the vendor intended it to work, as this is the way that TMs (transaction managers, i.e., IMS, CICS, etc.) interact with MQSeries.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
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 IBM MQ Support » MessageId Vs CorrelationID for request reply
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.