Author |
Message
|
Al Pacino |
Posted: Fri Jan 27, 2006 8:55 am Post subject: trigger not working |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
Hi all ,
I am using the following MQ 5.3 CDS 10 on windows 2003 .
I have an application queue which will trigger a java process once a meassage hits it. the messages are stacking in that queue and the trigger is not firing.
I have verified that the trigger is on , also the open input count on the init queue is 1 , trigger montior is running fine . the properties of the queus is fine , since I am not seeing any thing in the log , not sure where else to look :
here is how the queue is set :
AMQ8409: Display Queue details.
DESCR(used as replay)
PROCESS(CDS.DO) BOQNAME( )
INITQ(MSTU1.INITQ) TRIGDATA( )
CLUSTER( ) CLUSNL( )
QUEUE(CDS.GET) CRDATE(2005-10-17)
CRTIME(21.05.04) ALTDATE(2006-01-27)
ALTTIME(11.40.01) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
DEFPSIST(NO) MAXDEPTH(640000)
MAXMSGL(104857600) BOTHRESH(0)
SHARE DEFSOPT(SHARED)
HARDENBO MSGDLVSQ(PRIORITY)
RETINTVL(999999999) USAGE(NORMAL)
TRIGGER TRIGTYPE(FIRST)
TRIGDPTH(1) TRIGMPRI(0)
QDEPTHHI(80) QDEPTHLO(20)
QDPMAXEV(ENABLED) QDPHIEV(DISABLED)
QDPLOEV(DISABLED) QSVCINT(999999999)
QSVCIEV(NONE) DISTL(NO)
NPMCLASS(NORMAL) DEFTYPE(PREDEFINED)
TYPE(QLOCAL) SCOPE(QMGR)
DEFBIND(OPEN) IPPROCS(0)
OPPROCS(0) CURDEPTH(3)
Can someone advice please ?
thanks _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
mvic |
Posted: Fri Jan 27, 2006 9:00 am Post subject: Re: trigger not working |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 27, 2006 9:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Run the trigger monitor in the foreground, rather than the background, to make sure you know what's going on. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Fri Jan 27, 2006 9:40 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
Al Pacino |
Posted: Fri Jan 27, 2006 10:45 am Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
How do I run it in the foreground ?
thanks _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
vennela |
Posted: Fri Jan 27, 2006 10:47 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
From a command prompt:
runmqtrm -m QMGRNAME -q INITQ |
|
Back to top |
|
 |
Al Pacino |
Posted: Fri Jan 27, 2006 10:50 am Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
vennela,
I already did that earlier I get the following :
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
WebSphere MQ trigger monitor started.
__________________________________________________
Waiting for a trigger message
the message will land on the queue and nothing will change here . _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 27, 2006 11:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Then you aren't meeting the requirements for generating a trigger.
Can you show us the definition of your queue? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Fri Jan 27, 2006 11:05 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Actually the queue definition is on top
You already have three messages in the queue.
Clear them. Also turn your tigger off and turn it on and rety. |
|
Back to top |
|
 |
Al Pacino |
Posted: Fri Jan 27, 2006 11:09 am Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
I did clear the queue, turn the trigger off , turn the trigger back on and put a message but still no luck. I am almost sure somthing with the trigger monitor. I have also tried creating dummy initq and dummy app queue and no luck. That server have 5 trigger monitors running for a total of 5 queue mangers on that box. Can that cause an issue ? _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
Al Pacino |
Posted: Fri Jan 27, 2006 11:11 am Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
jefflowrey,
the definition is at the first post. _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
Al Pacino |
Posted: Fri Jan 27, 2006 11:35 am Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
thanks all , after clearing the queue and running the trigger in the foreground , I can see the process is being called but nothing happend to the messages , so atleast I know it is not the trigger . thanks for the help _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jan 27, 2006 11:55 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Sorry, I forgot to read the first message again.
Yeah, Trigger on First only fires when qdepth goes from 0 to 1.
Or when triggering is enabled. So you could have disabled and then reenabled triggering (with the trigger monitor running) and it should have triggered.
But you found where the problem was (which we knew, but you always have to prove)... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 28, 2006 10:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Al Pacino wrote: |
thanks all , after clearing the queue and running the trigger in the foreground , I can see the process is being called but nothing happend to the messages , so atleast I know it is not the trigger . thanks for the help |
Make sure your triggered app starts in the right environment, with the right userId and has the right permissions (qmgr, queues, file system)
After you have it working in the foreground you can switch to run the triggered app in the background.
enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|