The Triggering sample programs on IBM i
IBM MQ for IBM i supplies two Triggering sample programs that are written in ILE/RPG.
The programs are:
- AMQ3TRG4
- This is a trigger monitor for the IBM i environment. It submits an IBM i job for the application to be started, but this means that there is additional processing cost associated with each trigger message.
- AMQ3SRV4
- This is a trigger server for the IBM i environment. For each trigger message, this server runs the start command in its own job to start the specified application. The trigger server can call CICS transactions.
C language versions of these samples are also available as executable programs in library QMQM, called AMQSTRG4 and AMQSERV4.
- The AMQ3TRG4 sample trigger monitor on IBM i
AMQ3TRG4 is a trigger monitor. It takes one parameter: the name of the initiation queue it is to serve. AMQSAMP4 defines a sample initiation queue, SYSTEM.SAMPLE.TRIGGER, that we can use when you try the sample programs. - The AMQ3SRV4 sample trigger server
AMQ3SRV4 is a trigger server. It takes one parameter: the name of the initiation queue it is to serve. AMQSAMP4 defines a sample initiation queue, SYSTEM.SAMPLE.TRIGGER, that we can use when you try the sample programs. - Ending the Triggering sample programs on IBM i
A trigger monitor program can be ended by the sysrequest option 2 (ENDRQS) or by inhibiting gets from the trigger queue.
Parent topic: Sample programs on IBM i