| Author | 
		  Message
		 | 
		
		  | Vamsi Krishna | 
		  
		    
			  
				 Posted: Wed Oct 15, 2014 6:51 pm    Post subject: Issue with Shared Variable | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 12 May 2014 Posts: 53
  
  | 
		  
		    
			  
				Hi, I am having two message flows the first one is saving the header of the XML message using shared variables and it is sent for processing on some other technology and sent back to the second flow input queue i want to add those headers to the message from first flow.
 
 
I have observed when debugging the variable is copying the tree of header and when coming out of compute node i am not able to see the variable. could any one please help me with this issue. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Simbu | 
		  
		    
			  
				 Posted: Wed Oct 15, 2014 10:36 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India 
  | 
		  
		    
			  
				| We can examine the  shared variables only when we are step through the code line by line in compute node. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Wed Oct 15, 2014 10:51 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Shared variables are not shared between different flows. They are only shared among multiple invocations of the same flow. What you want to do here is save the information either by putting it on a queue or into a cache and retrieve it at second flow processing time.
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vamsi Krishna | 
		  
		    
			  
				 Posted: Thu Oct 16, 2014 1:19 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 12 May 2014 Posts: 53
  
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	Shared variables are not shared between different flows. They are only shared among multiple invocations of the same flow. What you want to do here is save the information either by putting it on a queue or into a cache and retrieve it at second flow processing time.
 
 
Have fun   | 
   
 
 
 
Hello fjb_saper the cache we should use with java compute node but i am not familiar with java is there any other we can solve this | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Thu Oct 16, 2014 1:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				This is looking like it is a standard use of Aggregation. 
 
 
Look at the samples and the many discussions here on this subject. _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vamsi Krishna | 
		  
		    
			  
				 Posted: Thu Oct 16, 2014 6:33 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 12 May 2014 Posts: 53
  
  | 
		  
		    
			  
				
   
	| smdavies99 wrote: | 
   
  
	This is looking like it is a standard use of Aggregation. 
 
 
Look at the samples and the many discussions here on this subject. | 
   
 
 
 
Hi Davies, 
 
Thanks for your reply i will try with the aggregation nodes and get back to you | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |