Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigering 1

Status
Not open for further replies.

pvmk

Programmer
Mar 12, 2001
16
0
0
US
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.

Quick response highly appreciated.

thanx
mahesh
 
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.


Hope this helps.
 
hi madhosh
thanx for your info, i tried the above steps in MMC for MQSeries. But unfortunately its not working. I'll try with the jms.

thanx
mahesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top