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 » trigger not working

Post new topic  Reply to topic
 trigger not working « View previous topic :: View next topic » 
Author Message
Al Pacino
PostPosted: Fri Jan 27, 2006 8:55 am    Post subject: trigger not working Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Fri Jan 27, 2006 9:00 am    Post subject: Re: trigger not working Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Al Pacino wrote:
trigger is not firing

I'll copy a link from another thread: it takes a bit of effort to set this up correctly : http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzal.doc/csq0322.htm

Read carefully - when (if?) it doesn't work, I recommend re-reading the sections entitled "Prerequisites for triggering" and "Conditions for a trigger event".
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 27, 2006 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Fri Jan 27, 2006 9:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

And read this one

http://www.mqseries.net/phpBB2/viewtopic.php?t=12988
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Al Pacino
PostPosted: Fri Jan 27, 2006 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Fri Jan 27, 2006 10:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

From a command prompt:
runmqtrm -m QMGRNAME -q INITQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Al Pacino
PostPosted: Fri Jan 27, 2006 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 27, 2006 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Fri Jan 27, 2006 11:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Al Pacino
PostPosted: Fri Jan 27, 2006 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Al Pacino
PostPosted: Fri Jan 27, 2006 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Al Pacino
PostPosted: Fri Jan 27, 2006 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 27, 2006 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Jan 28, 2006 10:54 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » General IBM MQ Support » trigger not working
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.