Triggerin g From Console Triggering: The queue manager defines certain conditions as constituting “triggerevents”. If triggering is enabled for a queue and a trigger event occurs, the queue manager sends a trigger message to a queue called an initiation queue. The presence of the trigger message on the initiation queue indicates that a trigger event has occurred. The following diagram will describe the process of the triggering. 1. Program A issues an MQPUT and puts a message into A-Q forProgram B.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
The queue manager defines certain conditions as constituting “trigger events”.If triggering is enabled for a queue and a trigger event occurs, the queuemanager sends a trigger message to a queue called an initiation queue. The
presence of the trigger message on the initiation queue indicates that atrigger event has occurred.
The following diagram will describe the process of the triggering.
1. Program A issues an MQPUT and puts a message into A-Q for Program B.
2. The queue manager processes this API call and puts the message into theapplication queue.
3. It also finds out that the queue is triggered. It creates a trigger messageand looks in the Process Definition to find the name of the application and puts it in the trigger message. The trigger message is put into theinitiation queue.
4. The trigger monitor gets the trigger message from the initiation queue andstarts the program specified.
5. The application program starts running and issues an MQGET to retrievethe message from the application queue.
Process definition:
A process definition object defines an application that starts in response to atrigger event on a Web Sphere MQ queue manager.
Initiation queue:
Defining an initiation queue when a trigger event occurs, the queue manager puts a trigger message on the initiation queue specified in the applicationqueue definition. Initiation queues have no special settings .
To do this task, we’ve to create a Queue Manager and two localqueues and a process definition.
Now the Trigger will invoke the Process.And the batch file will be executed.Here we specified in the batch file is to run a “Notepad” Application.We can run any application (java) in this batch file.