ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » [Solved] Missing trigger messages after QM restart

Post new topic  Reply to topic
 [Solved] Missing trigger messages after QM restart « View previous topic :: View next topic » 
Author Message
entropie
PostPosted: Fri Jun 20, 2003 1:11 am    Post subject: [Solved] Missing trigger messages after QM restart Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Fri Jun 20, 2003 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Fri Jun 20, 2003 10:27 am    Post subject: Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Fri Jun 20, 2003 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Sat Jun 21, 2003 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Sat Jun 21, 2003 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
entropie
PostPosted: Sun Jun 22, 2003 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » [Solved] Missing trigger messages after QM restart
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.