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 » WebSphere Message Broker (ACE) Support » Publish - Correlation Id

Post new topic  Reply to topic
 Publish - Correlation Id « View previous topic :: View next topic » 
Author Message
vedbhat
PostPosted: Tue Jul 05, 2005 7:07 pm    Post subject: Publish - Correlation Id Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

Hi All,

I am using WBIMB ver 5. Is there any option in the Publish message that I need to set for saving the Correlation Id instead of Broker generating a new one.

Also, The correlation Id generated will be different each time its published.

If yes, can someone let me know how it can be done.

Thanks in advance
Ved
_________________
IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jefflowrey
PostPosted: Wed Jul 06, 2005 2:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's not possible to do this, I think.

Also, you shouldn't need to do this.

What problem are you trying to solve with this idea?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Tue Jul 19, 2005 1:21 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

I really need to be able to this as well. I have .NET clients who emulate JMS like behavior using using var lenght client ids which they use to match their messages. Any advice much appreciated.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
malammik
PostPosted: Tue Jul 19, 2005 1:36 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Ok got it.
DECLARE CORRID CHAR '123XYZ';
DECLARE ASCII_CCSID INTEGER 437;
DECLARE BIN_CORRID BLOB CAST(CORRID as BLOB CCSID ASCII_CCSID);
DECLARE TEMPLATE BLOB X'000000000000000000000000000000000000000000000000';
DECLARE NEW_CORRID BLOB BIN_CORRID || TEMPLATE;
SET NEW_CORRID = SUBSTRING (NEW_CORRID FROM 0 FOR 25);
SET OutputRoot.MQMD.CorrelId = NEW_CORRID;
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Tue Jul 19, 2005 1:50 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Um.

Set OutputRoot.MQMD.CorrelID = CAST(SUBSTRING('123XYZ'||X'000000000000000000000000000000000000000000000000' from 0 for 25) as BLOB CCSID InputRoot.Properties.CodedCharSetID);

But there's no guarantee that the broker will maintain this when it publishes.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Tue Jul 19, 2005 6:14 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

I am setting it after the broker publishes and re-deliver it to the original subscriber. I am working on this pub sub proxy here that allows .NET, Cobol or any other API's/programming languages use broker pub/sub via XML and P2P comms.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
kspranava
PostPosted: Tue Jul 19, 2005 8:01 pm    Post subject: Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Quote:
MQMD for publications forwarded by a broker

If CorrelId is part of the subscriber’s identity, this is the value specified by the
subscriber when registering. Otherwise, it is a non-zero value chosen by the
broker.
Back to top
View user's profile Send private message
malammik
PostPosted: Wed Jul 20, 2005 7:24 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Yes and ?
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Wed Jul 20, 2005 7:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

malammik wrote:
Yes and ?

Kspranava is saying that, if the subscriber requested that the message have a particular Correl-ID in the subscription request, that the broker will set that Correl_ID on all publications to that subscriber. If the subscriber does NOT request the correl_id, then the broker will always set a new correl-id.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Wed Jul 20, 2005 9:22 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Yes I know that but my requirements are slightly more complicated. For example subscribers must be able to use a signle correlation id to match a set of different subscriptions, etc. It's a long story. Thanks.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
vedbhat
PostPosted: Mon Jul 25, 2005 6:36 pm    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

The problem, I have is - The Correlation is not same each time. Is there any way????
_________________
IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Publish - 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.