| Author | 
		  Message
		 | 
		
		  | HarishKDewangan | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 6:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 23 Sep 2011 Posts: 13
  
  | 
		  
		    
			  
				Hi All,
 
 
I have some different requirement than mentioned in above thread,
 
 
Scenario :
 
I have two flows ( Flow1 & Flow2) 
 
Flow1 has two MQInput nodes, one for REQUEST & one for RESPONSE  (All with its default Transaction & Instances properties)
 
 
Flow2 has only one MQInput node.
 
 
Now the flow of the message is :
 
[A] Flow1-->MQInput(REQUEST)-->Node1-->Node2....-->Flow2
 
[B] Flow2-->MQInput-->Node1-->Reply to Flow1
 
[C] Flow1-->MQInput(RESPONSE)-->Node1-->Node2...(FinalOutput)
 
 
I have to store some data in the first flow [A] to retrieve in [C] flow using shared variable, as localenvironment & environment variables will not work here.
 
 
Now if I have multiple instances of the Flow1 then how am I going to handle the data stored in shared variable for overwrite stuff (shared variable in the first instance will be overwritten by second instance) . 
 
 
Please suggest. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 6:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 7:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				Split from this thread which had already been reopened once. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 7:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
			  
				You have three options:
 
 
1. solidDB in-memory database.
 
2. Singleton.
 
3. SHARED.
 
 
My preferred options are in order of preference. _________________ http://leanpub.com/IIB_Tips_and_Tricks
 
Save $20: Coupon Code: MQSERIES_READER | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 8:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				You can construct the shared data in any way you want, to ensure that it's not overwritten.
 
 
For example, you could create a shared ROW variable and then use the request id  as the name of a field in the row, and then the rest of the data you need to share as children under that.
 
 
Then you just need to make sure that you properly delete the shared data row in [C].
 
 
pretend you're writing Perl and the shared variable is a hash. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Feb 16, 2012 10:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				or
 
[A]Request -> fan out
 
[B]Service
 
[C]Response -> fan in
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |