|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Triggering at QM Startup |
« View previous topic :: View next topic » |
Author |
Message
|
mattfarney |
Posted: Tue Jul 12, 2011 4:55 pm Post subject: Triggering at QM Startup |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Jul 12, 2011 5:33 pm Post subject: Re: Triggering at QM Startup |
|
|
 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 |
|
 |
fjb_saper |
Posted: Tue Jul 12, 2011 8:44 pm Post subject: Re: Triggering at QM Startup |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Jul 12, 2011 9:10 pm Post subject: Re: Triggering at QM Startup |
|
|
 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 |
|
 |
mattfarney |
Posted: Wed Jul 13, 2011 9:22 am Post subject: |
|
|
 Disciple
Joined: 17 Jan 2006 Posts: 167 Location: Ohio
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|