Author |
Message
|
kvranjan10 |
Posted: Tue Aug 18, 2009 11:26 pm Post subject: MQ Trigger Monitor is not working |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
Hi All,
Actually i created a service in queue manager to run the trigger monitor continously.
I created a service in queue manager by giving the following properties
Service name: Trigger
Service control : Queue manager
Start Command : D:\Program files\IBM\Websphere MQ\bin\runmqtrm
start args: -m TESTQM -q initq
Service type : Server Type
but when i am restating the queue manager the service status is showing as running but it is unable to run the application when trigger event occurs.
i created the initiation queue and the process definition also.
My plan is when any channel event occurs iam running an application to notify that. i have set the trigger properties on SYSTEM.ADMIN.CHANNEL.EVENT
Could anyone please help me on this.
Thanks in Advance, |
|
Back to top |
|
 |
exerk |
Posted: Tue Aug 18, 2009 11:45 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Please post WMQ Version (including ServicePack) and platform; also the Process definition.
Are you absolutely sure all trigger conditions are being met? Are there any trigger-related messages on the dead-letter queue, e.g. MQFB_APPL_CANNOT_BE_STARTED messages? Is the application coded to accept a trigger structure etc.? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
kvranjan10 |
Posted: Tue Aug 18, 2009 11:57 pm Post subject: |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
MQ Version : 6.0.2.4
OS: Windows 2003 service Pack 2
i created a process definition with following properties
process name: p1
Application type: Windows NT
application id : D:\test\test.bat
For testing purpose i just wanted to open a notepad with that bat file.
Yes the trigger condition are met bcoz i can see the trigger messages in initiation queue. |
|
Back to top |
|
 |
exerk |
Posted: Wed Aug 19, 2009 12:07 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
And I take it that queue is called initq? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
kvranjan10 |
Posted: Wed Aug 19, 2009 1:08 am Post subject: |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
yes. i have given the same name initq as initiation queue name |
|
Back to top |
|
 |
exerk |
Posted: Wed Aug 19, 2009 1:19 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
kvranjan10 wrote: |
yes. i have given the same name initq as initiation queue name |
And that queue has IPPROCS > 0 ? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Wed Aug 19, 2009 1:25 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
please share the o/p of
dis ql(SYSTEM.ADMIN.CHANNEL.EVENT)
dis qs(SYSTEM.ADMIN.CHANNEL.EVENT) type(handle) all
Cheers,
aditya |
|
Back to top |
|
 |
kvranjan10 |
Posted: Wed Aug 19, 2009 1:34 am Post subject: |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
dis ql(SYSTEM.ADMIN.CHANNEL.EVENT)
1 : dis ql(SYSTEM.ADMIN.CHANNEL.EVENT)
AMQ8409: Display Queue details.
QUEUE(SYSTEM.ADMIN.CHANNEL.EVENT) TYPE(QLOCAL)
ACCTQ(QMGR) ALTDATE(2009-08-19)
ALTTIME(01.41.50) BOQNAME( )
BOTHRESH(0) CLUSNL( )
CLUSTER( ) CLWLPRTY(0)
CLWLRANK(0) CLWLUSEQ(QMGR)
CRDATE(2009-08-19) CRTIME(01.37.00)
CURDEPTH(4) DEFBIND(OPEN)
DEFPRTY(0) DEFPSIST(NO)
DEFSOPT(EXCL) DEFTYPE(PREDEFINED)
DESCR(WebSphere MQ Channel Related Event Queue)
DISTL(NO) GET(ENABLED)
HARDENBO INITQ(initq)
IPPROCS(0) MAXDEPTH(3000)
MAXMSGL(9000) MONQ(QMGR)
MSGDLVSQ(PRIORITY) TRIGGER
NPMCLASS(NORMAL) OPPROCS(0)
PROCESS(p1) PUT(ENABLED)
QDEPTHHI(80) QDEPTHLO(20)
QDPHIEV(DISABLED) QDPLOEV(DISABLED)
QDPMAXEV(ENABLED) QSVCIEV(NONE)
QSVCINT(999999999) RETINTVL(999999999)
SCOPE(QMGR) NOSHARE
STATQ(QMGR) TRIGDATA( )
TRIGDPTH(1) TRIGMPRI(0)
TRIGTYPE(EVERY) USAGE(NORMAL)
------------------------------------------------------------------------------
dis qs(SYSTEM.ADMIN.CHANNEL.EVENT) type(handle) all
2 : dis qs(SYSTEM.ADMIN.CHANNEL.EVENT) type(handle) all
AMQ8565: Queue Status not found.
-----------------------------------------------------------------------
and for the initq queue the IPPROCS is 1 |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Aug 19, 2009 1:51 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
i assume the trigger monitor is running and also has the "initq" - queue open for input, otherwise no trigger message would have been created.
if curdepth of the initq is > 0 (as you said), then the trigger monitor has problems getting or processing the message. if the trigger monitor is able to get the message, but unable to start the application i would expect the trigger message ito be put into the dlq.
is there a dlq assigned in the queuemanager?
do you encounter any security problems with the trigger monitor (which userid is used for the service)?
if you run the trigger monitor manually, does everything work? _________________ Regards, Butcher |
|
Back to top |
|
 |
kvranjan10 |
Posted: Wed Aug 19, 2009 2:07 am Post subject: |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
If i am running manually through command prompt its working fine...
by giving the command
runmqtrm -m TESTQM -q initq
and its waiting for trigger message and when the message arrives in initq its automatically opening the notepad as i given it in that bat file.
yes. dlq is assigned to queue manager but no msgs in dlq.
when i checked the runmqtrm process in task manager its running in MUSR_MQADMIN. bit i logged in through different username ' wbiadmin' |
|
Back to top |
|
 |
exerk |
Posted: Wed Aug 19, 2009 2:14 am Post subject: Re: MQ Trigger Monitor is not working |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
kvranjan10 wrote: |
Start Command : D:\Program files\IBM\Websphere MQ\bin\runmqtrm |
Did you quote the above in your service definition, i.e. "D:\Program files\IBM\Websphere MQ\bin\runmqtrm" ? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
kvranjan10 |
Posted: Wed Aug 19, 2009 2:29 am Post subject: |
|
|
Apprentice
Joined: 05 Aug 2008 Posts: 29
|
i didnot gave the quotations like "D:\Program files\IBM\Websphere MQ\bin\runmqtrm"
i simply gave the D:\Program files\IBM\Websphere MQ\bin\runmqtrm |
|
Back to top |
|
 |
exerk |
Posted: Wed Aug 19, 2009 2:30 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Try quoting it, as there is a space in that path, and see what happens... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Wed Aug 19, 2009 2:31 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
You need to define the service with below properties :
Service name: Trigger
Service control : Queue manager
Start Command : runmqtrm -m IQP4 -q INITQ
start args:
Service type : Server Type
and ensure that no old TM process running before starting this service.
Cheers,
Aditya |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Wed Aug 19, 2009 2:33 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
small correction in service:
Start Command : runmqtrm -m TESTQM -q initq
cheers,
Aditya |
|
Back to top |
|
 |
|