Author |
Message
|
sboucher |
Posted: Thu Feb 26, 2004 5:46 am Post subject: Triggering - Is This Possible |
|
|
Acolyte
Joined: 27 Oct 2002 Posts: 52
|
I would like to trigger a process when the QDepth reaches 3000 or every 15 minutes whichever comes first. The Queue will be constantly receiving messages during the business day.
I set Trigger Type to None and specified a QDEPTH of 3000 but nothing happend. Then Changed Trigger Type to First and still keeping a QDEPTH of 3000 then trigger fired all the time. What am I doing wrong and what are my options
Thanks _________________ Scott A. Boucher
Database Administartor |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Feb 26, 2004 6:16 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Quote: |
I would like to trigger a process when the QDepth reaches 3000
|
Set the type of Trigger to Depth, and set the Depth to 3000.
Quote: |
I would like to trigger a process ... every 15 minutes
|
Not possible with MQ triggering out of the box.
Scott, read the chapter on Triggering in the App Prog Guide:
http://publibfp.boulder.ibm.com/epubs/html/csqzal06/csqzal06tfrm.htm _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqdev |
Posted: Thu Feb 26, 2004 8:47 am Post subject: If its UNIX, consider doing it through a cron job |
|
|
Centurion
Joined: 21 Jan 2003 Posts: 136
|
Scott,
You could trigger a job every 15 mins and the first thing you need to do is to check if another instance of the same job is running (its possible that whn cron starts this process, it could have been triggered by MQ by virtue of QDepth reaching 3000).
If you are on Windows - am not sure. Check to see if you have an equivalent of cron on Windows
cheers! |
|
Back to top |
|
 |
bduncan |
Posted: Thu Feb 26, 2004 1:03 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
There's no way to use the trigger interval to achieve the 15 minute requirement? _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Feb 26, 2004 3:06 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Nope. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
sboucher |
Posted: Fri Feb 27, 2004 12:34 am Post subject: |
|
|
Acolyte
Joined: 27 Oct 2002 Posts: 52
|
Thanks for the replies. I feel really stupid not scolling up in the triggering panel on the Q to find trigger type of Depth DUH!!
So everything is working but I find it a little strange that MQ after reaching the trigger depth turns off triggering and then needs to have something restart it.
As for satisfying the QDepth or time interval, Windows has its scheduler but doesn't get down to every x minutes. I would need a separate job for each time interval but could set that job to run every day, week, etc. Kinda Hokey unless I'm missing something. Our mainframe guys say they have Adam Ant (SP?) which can poll the server at time intervals and fire off a job to drain the Q.
Thanks Again _________________ Scott A. Boucher
Database Administartor |
|
Back to top |
|
 |
|