| Author | 
		  Message
		 | 
		
		  | smite0hb | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 9:37 am    Post subject: Calling executable when message reaches a queue | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 19 May 2006 Posts: 24
  
  | 
		  
		    
			  
				| I would like to call a program that takes the message that just was written to a specific queue and process that message.  I was reading about Channel - Exit programs.. I was wondering what other options there are to call a program(windows-java, Iseries - ILE...) to process a message that just arrived.. I want to stay away from any type of timer bases process that reads the specific queue and then calls a program to process it... Programs will be on the MQ server 6.0, on a windows or Iseries server.. Any help would be appreciated.... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Toronto_MQ | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 9:51 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 10 Jul 2002 Posts: 263 Location: read my name 
  | 
		  
		    
			  
				What are you trying to accomplish?  You could write an application that does a get with wait, or trigger the queue - in which case you'd still need to write an application that does the get.  All of this should be well documented in the Application Programming Guide.
 
 
Cheers
 
Steve | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smite0hb | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 9:56 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 19 May 2006 Posts: 24
  
  | 
		  
		    
			  
				| All I want to do is when a message hits a queue, call a java application that reads the message and attaches it to an email and sends it.. I wasnt sure if I could use the trigger process off a queue to call the java applicaiton or what other options were out there to call the java application. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 10:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				You can trigger any program.
 
 
This might, for example, be the program "java", with the command line option to tell it to use your class as the main java application. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smite0hb | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 10:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 19 May 2006 Posts: 24
  
  | 
		  
		    
			  
				| Thats it.. but being new.. and trying to read the manuals instead of asking questions.. I am not sure how to actually set up the queue to be able to call the program... In the triggering section of the queue, I need to set the initation queue name(what is the name of the queue, is it something I create or use a default), the process name.. is that where I place the actual program call with the parameters I want to pass to the program.. is there specific red book that can walk me through this?  Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 10:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Sep 25, 2006 3:48 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |