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 » Triggering at QM Startup

Post new topic  Reply to topic
 Triggering at QM Startup « View previous topic :: View next topic » 
Author Message
mattfarney
PostPosted: Tue Jul 12, 2011 4:55 pm    Post subject: Triggering at QM Startup Reply with quote

Disciple

Joined: 17 Jan 2006
Posts: 167
Location: Ohio

I have a trigger process that I am happy with. Our infrastructure folks recycle that server nightly (including taking down all Queue Managers). When the QM restarts, I am seeing the trigger fire when not expected. Given the intended audience, false positives could be painful.

The qlocal is defined as below (heavily snipped).

Code:
   QUEUE(RESUBMIT.QUEUE)        TYPE(QLOCAL)
   CURDEPTH(0)                             DEFBIND(OPEN)
   GET(ENABLED)                            HARDENBO
   INITQ(RESUBMIT.INIT.QUEUE)              IPPROCS(0)
   TRIGGER                                 NPMCLASS(NORMAL)
   OPPROCS(0)                              PROCESS(RESUBMIT_APP)
   TRIGDATA( )                             TRIGDPTH(1)
   TRIGMPRI(0)                             TRIGTYPE(FIRST)
   USAGE(NORMAL)                       


My service is defined as:
Code:
   SERVICE(RESUBMIT_TRIG_MON)              CONTROL(QMGR)
   SERVTYPE(SERVER)                        STARTCMD(/opt/mqm/bin/runmqtrm)
   STARTARG(-m +QMNAME+ -q RESUBMIT.INIT.QUEUE)
   STOPCMD(/opt/mqm/bin/amqsstop)       
   STOPARG(-m +QMNAME+ -p +MQ_SERVER_PID+)


I was able to find a [very]+ detailed description of necessary conditions for a trigger to fire on the IBM library site.

Is there a similar discussion for how triggering is handled on Queue Manager startup? My search attempts came up empty.

-mf
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 12, 2011 5:33 pm    Post subject: Re: Triggering at QM Startup Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mattfarney wrote:
Is there a similar discussion for how triggering is handled on Queue Manager startup?


The queue manager evaluates the trigger conditions as normal at startup.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 12, 2011 8:44 pm    Post subject: Re: Triggering at QM Startup Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Vitor wrote:
mattfarney wrote:
Is there a similar discussion for how triggering is handled on Queue Manager startup?


The queue manager evaluates the trigger conditions as normal at startup.

With one exception however... It will start the triggered process if the queue depth has reached the threshold and no consuming process is running.

More identical to turning the trigger attribute off and then back on, on the queue.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Jul 12, 2011 9:10 pm    Post subject: Re: Triggering at QM Startup Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
Vitor wrote:
mattfarney wrote:
Is there a similar discussion for how triggering is handled on Queue Manager startup?


The queue manager evaluates the trigger conditions as normal at startup.

With one exception however... It will start the triggered process if the queue depth has reached the threshold and no consuming process is running.

More identical to turning the trigger attribute off and then back on, on the queue.


Simplistically, all the attributes "turn on" as the queue manager starts.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mattfarney
PostPosted: Wed Jul 13, 2011 9:22 am    Post subject: Reply with quote

Disciple

Joined: 17 Jan 2006
Posts: 167
Location: Ohio

Thanks for the info.
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 » Triggering at QM Startup
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.