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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Triggering

Status
Not open for further replies.

maha20

Programmer
Oct 27, 2003
14
US
Hey-
How are the applications on the legacy system are invoked when a message is placed on a queue. Is it thru triggering?. If so then how frequently are these triggering prog. run?. I do have theoritical knowledge but please let me know how it is implemented in the real world. Thanks.

Maha.
 
To use triggering you define a process which calls the program which will accept the message off the queue.

In your QLOCAL definition you then need to define the process, change NOTRIGGER to TRIGGER, and depending on what you want define when it should trigger. Your options for TRIGTYPE is trigger on EVERY message arriving on the queue, on reaching DEPTH as defined in TRIGDPTH, or FIRST when the first message hits the queue. We tend to use EVERY as a default.

You will also need to define the INITQ = INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE)

In the PROCESS you will define the application in the APPLICID field, with optional extra parameters in the USERDATA field. ENVRDATA can also play a role e.g. we would use an "&" to make the process run in the background.


IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
And one more thing, you need to have the trigger monitor running as well:

runmqtrm -m <YOURQMNAME> -q SYSTEM.DEFAULT.INITIATION.QUEUE &

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top