Author |
Message
|
entropie |
Posted: Fri Jun 20, 2003 1:11 am Post subject: [Solved] Missing trigger messages after QM restart |
|
|
Newbie
Joined: 02 Jun 2003 Posts: 3 Location: Frankfurt, Germany
|
Hello,
We have a local queue, which triggers an application, when messages arrive from remote. The TrigType is FIRST and the TrigInt of the QMGR is used to re-schedule the application after a certain time, because the triggered application processes 100 messages per lifetime only. So in a running system everything works fine.
After a stop and restart of the QM messages still reside on the application queue, but there is no new Trigger Message generated from the QMGR after the TrigInt interval, although the queue is not empty.
The first incoming messages generates the needed trigger, but in case of no incoming traffic the queue will not be processed.
Is it a "normal behaviour"?
Is it possilbe to generate the trigger with MQ config items?
Do I have to start the processing externally (explicit start of application)?
MQS 5.2, Unisys Clearpath OS2200 (= HP/UX compatible).
Regards,
Andreas |
|
Back to top |
|
 |
bduncan |
Posted: Fri Jun 20, 2003 8:05 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Quote: |
Is it a "normal behaviour"? |
Yes.
Quote: |
Is it possilbe to generate the trigger with MQ config items? |
No.
Quote: |
Do I have to start the processing externally (explicit start of application)? |
Yes. In the past I've made this part of the queue manager startup script I place in /etc/rc.d, so anytime the queue manager restarted all triggered applications would run and ensure the queues were cleared. Then normal triggering would take effect... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jun 20, 2003 10:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bduncan wrote: |
Quote: |
Is it possilbe to generate the trigger with MQ config items? |
No.
|
Maybe I don't understand the original question. As far as I'm aware, if you have a queue with messages in it, and you change the Trigger Control from On to Off and then from Off to On using any MQSeries configuration tool, a new trigger message will be generated.
In addition, it's straightforward to write a program that will inquire about the properties of a queue to determine the process name and etc. and then create a new trigger message that gets put on the initation queue. |
|
Back to top |
|
 |
bduncan |
Posted: Fri Jun 20, 2003 12:50 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Jeff. You understood it correctly. I forgot all about that trick with the trigger parameter to retrigger a queue.
However, your second solution falls under the "Do I have to start the processing externally?" question since in the end, starting the script will require some manual intervention or adding it to the startup scripts, which isn't much different than just adding the actual processing application to the startup script. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Jun 21, 2003 8:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Quote: |
your second solution falls under the "Do I have to start the processing externally?" question |
True. And it still requires manual intervention, whereas putting the application into the startup script doesn't. But it's something that could be done as part of a suite of management tools, and is less system/application/processing specific.
And it was just a suggestion...  |
|
Back to top |
|
 |
zpat |
Posted: Sat Jun 21, 2003 10:19 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Running triggered programs daily or hourly using a scheduler as a "backup" to triggering is a sensible precaution. |
|
Back to top |
|
 |
entropie |
Posted: Sun Jun 22, 2003 1:06 am Post subject: |
|
|
Newbie
Joined: 02 Jun 2003 Posts: 3 Location: Frankfurt, Germany
|
JeffLowrey wrote: |
As far as I'm aware, if you have a queue with messages in it, and you change the Trigger Control from On to Off and then from Off to On using any MQSeries configuration tool, a new trigger message will be generated.
|
This helps! I include that in startup scripts and it should work!
Thanks. |
|
Back to top |
|
 |
|