| Author | Message | 
		
		  | vedbhat | 
			  
				|  Posted: Tue Jul 05, 2005 7:07 pm    Post subject: Publish - Correlation Id |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 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 |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Wed Jul 06, 2005 2:02 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 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 |  | 
		
		  |  | 
		
		  | malammik | 
			  
				|  Posted: Tue Jul 19, 2005 1:21 pm    Post subject: |   |  | 
		
		  |  Partisan
 
 
 Joined: 27 Jan 2005Posts: 397
 Location: Philadelphia, PA
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | malammik | 
			  
				|  Posted: Tue Jul 19, 2005 1:36 pm    Post subject: |   |  | 
		
		  |  Partisan
 
 
 Joined: 27 Jan 2005Posts: 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 |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Tue Jul 19, 2005 1:50 pm    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 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 |  | 
		
		  |  | 
		
		  | malammik | 
			  
				|  Posted: Tue Jul 19, 2005 6:14 pm    Post subject: |   |  | 
		
		  |  Partisan
 
 
 Joined: 27 Jan 2005Posts: 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 |  | 
		
		  |  | 
		
		  | kspranava | 
			  
				|  Posted: Tue Jul 19, 2005 8:01 pm    Post subject: |   |  | 
		
		  |  Centurion
 
 
 Joined: 27 Apr 2003Posts: 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 |  | 
		
		  |  | 
		
		  | malammik | 
			  
				|  Posted: Wed Jul 20, 2005 7:24 am    Post subject: |   |  | 
		
		  |  Partisan
 
 
 Joined: 27 Jan 2005Posts: 397
 Location: Philadelphia, PA
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Wed Jul 20, 2005 7:27 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 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 |  | 
		
		  |  | 
		
		  | malammik | 
			  
				|  Posted: Wed Jul 20, 2005 9:22 am    Post subject: |   |  | 
		
		  |  Partisan
 
 
 Joined: 27 Jan 2005Posts: 397
 Location: Philadelphia, PA
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vedbhat | 
			  
				|  Posted: Mon Jul 25, 2005 6:36 pm    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Mar 2002Posts: 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 |  | 
		
		  |  | 
		
		  |  |