| Author | 
		  Message
		 | 
		
		  | nishantmodak | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 11:11 am    Post subject: MQ Input Browse | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 25 May 2009 Posts: 19
  
  | 
		  
		    
			  
				I have a flow,
 
 
MQ Input --> Compute --> HTTP Request --> Soap Extract -> Compute -> MQ Get -> MQ output.
 
 
 
1. MQ Input --> I have set browse option.
 
2. When I get success from HTTP .. by examining in compute... Then I need to remove the message from input queue. Hence, I use MQ Get again by giving the MQMD details stored in Environment.MQMD..
 
3. Even then, MQGet goes to the 'No Message' terminal, and the message is not retrieved.
 
I have set use MQMD header.. on Request Tab.. and given MQMD Location as Environment.MQMD...
 
 
how can i solve this, so that the MQGet reads the message from the queue?
 
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 11:29 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				The MQInput node has already removed the message from the input queue.
 
 
That's what it *does*.
 
 
This question, and almost every question you will have as follow ups - including "how do I put the message back if something goes wrong" are addressed in day 1 of broker training, and are *basic* use of the product. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nishantmodak | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 11:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 25 May 2009 Posts: 19
  
  | 
		  
		    
			  
				Thats not correct.
 
In this case MQ Input will *not* remove the message from the input queue, because the MQBrowse option is set.
 
 
This is also confirmed by later reading the message from the same 'input' queue. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 11:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				  
 
 
missed that little "browse" comment.
 
 
Possibly you have not saved MQMD into the Environment tree such that it is still under an MQMD parser. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nishantmodak | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 11:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 25 May 2009 Posts: 19
  
  | 
		  
		    
			  
				I use MQ Get again by giving the MQMD details stored in Environment.MQMD.. 
 
 
on MQGet Input MQMD Location.. I give.. Environment.MQMD..
 
alongwith that, I Set the OutputRoot.MQMD = Environment.MQMD...
 
 
both do not work.. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 12:04 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				Yes.
 
 
What I meant was, when you *wrote* the MQMD into Environment, it may not have been Written correctly. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nishantmodak | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 12:15 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 25 May 2009 Posts: 19
  
  | 
		  
		    
			  
				What is the *correct* way to write that?
 
 
I thought,
 
 
Environment.MQMD = InputRoot.MQMD should work?
 
 
Am i missing something?
 
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Thu Jul 02, 2009 12:23 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 08 Oct 2004 Posts: 1905 Location: Dubai 
  | 
		  
		    
			  
				Hi nishantmodak,
 
 
Search for Environment with DOMAIN clause.
 
 
Regards. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |