| Author | 
		  Message
		 | 
		
		  | MKrishnan | 
		  
		    
			  
				 Posted: Sun Apr 21, 2002 3:39 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Apr 2002 Posts: 4 Location: Maryland, USA 
  | 
		  
		    
			  
				I am new to MQSeries. I have XML data in the queue and want to trigger another java program to parse the data. Any help on how to do this would be highly appreciated.
 
 
Regards
 
Murali | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vedbhat | 
		  
		    
			  
				 Posted: Sun Apr 21, 2002 7:18 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 19 Mar 2002 Posts: 186 Location: Singapore 
  | 
		  
		    
			  
				Hi Krishnan,
 
 
Look at the How to trigger application chapter in MQSeries Primer red book. If you need the Red book pls let me know.
 
 
Regards
 
Ved | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MKrishnan | 
		  
		    
			  
				 Posted: Mon Apr 22, 2002 8:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Apr 2002 Posts: 4 Location: Maryland, USA 
  | 
		  
		    
			  
				hi ved,
 
 
Thanks for the info. I set the queue as triggered and created a process definition for calling the java app. When I put a message in the queue the message is gone (i don't see it). Also, the java app is also not triggered. What could be the reason for this? 
 
 
Regards,
 
Murali  | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vedbhat | 
		  
		    
			  
				 Posted: Mon Apr 22, 2002 5:41 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 19 Mar 2002 Posts: 186 Location: Singapore 
  | 
		  
		    
			  
				Hi,
 
 
Please check 1) whether the trigger monitor is running 2) Check the value of Trigger type.
 
 
If you setup correctly it should work. Try launching Notepad.exe 
 
 
regards
 
Ved | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | deneb | 
		  
		    
			  
				 Posted: Tue Apr 23, 2002 4:37 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Novice
 
 Joined: 15 Apr 2002 Posts: 18
  
  | 
		  
		    
			  
				Hi
 
 
Could i know the definition for the
 
- Trigger
 
- Process Definition
 
that u have done ...
 
 
deneb | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MKrishnan | 
		  
		    
			  
				 Posted: Thu Apr 25, 2002 7:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Apr 2002 Posts: 4 Location: Maryland, USA 
  | 
		  
		    
			  
				Hi,
 
 
The trigger monitor wasn't working correctly. I ran the trigger monitor again and it worked. Thanks for the help.
 
 
Regards,
 
Murali | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | deneb | 
		  
		    
			  
				 Posted: Fri Apr 26, 2002 6:33 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Novice
 
 Joined: 15 Apr 2002 Posts: 18
  
  | 
		  
		    
			  
				Hi
 
 
if you could illustrate how u have done it then i would get an idea as to how would one expose Java programs as triggers
 
i.e. what is the application type 
 
and how does TriggerMonitor start the java code
 
 
does it do java XXX where XXX is the java class file and the classpath required for the TriggerMonitor??
 
 
deneb | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MKrishnan | 
		  
		    
			  
				 Posted: Mon Apr 29, 2002 7:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Apr 2002 Posts: 4 Location: Maryland, USA 
  | 
		  
		    
			  
				hi deneb,
 
 
I have a batch file which would call the java programs. I created a process definition and set the application identifier to the batch file. In the application queue set the trigger on,trigger type First,Trigger depth 1, set the initiation queue, set the process name to the definition created and start the trigger monitor. I have another java program that would put a message(xml string) in the queue. The trigger monitor would call the batch file.  The batch file is very simple java <Class Name>.
 
 
Murali | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |