Will some tell me how to triger an application, when messages comes to queue. I tried to do the same, no where message is showing up and application is not triggering.
The definitions necessary to trigger an application are as follows:
• The target queue must have “triggering” specified as shown in bold below:
DEFINE QLOCAL(A-Q) REPLACE +
TRIGGER
TRIGTYPE(first) +
INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE ) +
PROCESS(proc1)
DESCR(’This is a triggered queue’)
• The process definition associated with the target queue can be this:
DEFINE PROCESS(proc1) REPLACE +
DESCR(’Process to start server program’) +
APPLTYPE(WINDOWSNT) +
APPPLICID(‘c:\test\myprog.exe’)
• EVERY Every time a message is put in the target queue a trigger message is also put in
the initiation queue. Use this when your program exits after processing one
message or transaction, as shown above on the left.
• FIRST A trigger message is put in the initiation queue only when the target queue has
been empty. Use this when the program exits only then when there are no more
messages in the queue, as shown on the right.
• n messages A trigger message is put in the initiation queue when there are n messages in the
target queue. For example, you can start a batch program when the queue holds
1000 messages.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.