| Author | Message | 
		
		  | mqramu | 
			  
				|  Posted: Wed Mar 17, 2004 9:28 am    Post subject: TRIGGERING |   |  | 
		
		  | Newbie
 
 
 Joined: 17 Mar 2004Posts: 2
 
 
 | 
			  
				| HI EVERY BODY, 
 An application queue definition contains the following trigger parameters
 TRIGGER+TRIGTYPE(EVERY)+TRIGDPTH(100)+TRIGPRI(5)
 
 IF this is situation how the trigger will be generated.Please explain
 
 Thank you
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | EddieA | 
			  
				|  Posted: Wed Mar 17, 2004 9:55 am    Post subject: |   |  | 
		
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 2453
 Location: Los Angeles
 
 | 
			  
				| Read the Script (MQSC) Command Reference.  It explains for each of the Trigger options how they interact.  From that you should be able to work out when the Trigger will happen. 
 Cheers,
 _________________
 Eddie Atherton
 IBM Certified Solution Developer - WebSphere Message Broker V6.1
 IBM Certified Solution Developer - WebSphere Message Broker V7.0
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | QueenBee | 
			  
				|  Posted: Thu Mar 18, 2004 12:11 pm    Post subject: Answer for TRIGGERING |   |  | 
		
		  | Apprentice
 
 
 Joined: 28 May 2003Posts: 43
 Location: Grand Rapids, MICHIGAN
 
 | 
			  
				| TRIGGER+TRIGTYPE(EVERY)+TRIGDPTH(100)+TRIGPRI(5) 
 
 This is my part of the answer:
 
 It would trigger for every 100 "priority 5" message that arrives on the queue.
  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PeterPotkay | 
			  
				|  Posted: Thu Mar 18, 2004 2:48 pm    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 15 May 2001Posts: 7723
 
 
 | 
			  
				| Its a trick question QueenBee!   
 You might find something like this on an exam one day.
 
 Personally, I would go to the Application Programming Referance Manula Chapter 40 to get the correct answer to this one.
 _________________
 Peter Potkay
 Keep Calm and MQ On
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | techno | 
			  
				|  Posted: Thu Mar 18, 2004 3:53 pm    Post subject: |   |  | 
		
		  | Chevalier
 
 
 Joined: 22 Jan 2003Posts: 429
 
 
 | 
			  
				| I guess TRIGDPTH(100) is not considered when TRIGTYPE(EVERY)
 So the app/process gets triggered for every message having priority 5 and more.
 
 I have question. Is Triggere Monitor needed to be running, to get trigger message generated on InitQ?  Where from the Trigger Monitor takes charge? It should be after message arrival on InitQ. Please help in understanding this. (Trigger Message is not getting generated in my case. I tried doing EC=VERY also. This is on MF. )
 
 Thanks
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kevinf2349 | 
			  
				|  Posted: Fri Mar 19, 2004 5:30 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 28 Feb 2003Posts: 1311
 Location: USA
 
 | 
			  
				| A trigger monitor has to be running before a trigger message will be generated. Have a look at the MQ Application Programming Guide Chapter 14. In the conditions for a trigger event number 8 states.. 
 
 
   
	| Quote: |  
	| "A trigger monitor currently has the initiation queue open for removing messages (that is, the OpenInputCount local queue attribute is greater than zero)." |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |