Author |
Message
|
qizhirui |
Posted: Tue Jul 25, 2006 7:03 am Post subject: need to start the MQ trigger monitor manually? |
|
|
Novice
Joined: 24 Jun 2006 Posts: 14
|
first, thanks elvis_gn, jefflowrey, koko for yours advice and help about my post of the MQ trigger.
i do a exercise to experience the MQ trigger, but the result is not i want .
the whole process is as follows:
LOCAL QUEUE
DEFINE QLOCAL(QUEUE.LOCAL.T02) +
REPLACE +
TRIGGER +
TRIGMPRI(0) +
TRIGTYPE(EVERY) +
PROCESS(PROCESS01) +
INITQ(QUEUEINIT) +
DEFPRTY
PROCESS
DEFINE PROCESS(PROCESS01) +
REPLACE +
DESCR('This is Trigger Process object01') +
APPLICID('C:\clear.bat') +
APPLTYPE(WINDOWSNT)
INIT
DEFINE QLOCAL(QUEUEINIT01) +
LIKE('SYSTEM.DEFAULT.INITIATION.QUEUE')
DESCR('INIT QUEUE01')
But nothing is happened, but i get some some materials about the MQ trigger ," the a trigger monitor is a continuously-running program that serves one or more initiation que" .
but i need to use the command " runmqtrm[-m QMgrName] [-q InitQ] " to start the trigger monitor. the trigger event is happened.
please tell me in details .
Last edited by qizhirui on Tue Jul 25, 2006 8:20 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 25, 2006 7:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Nothing gets triggered if the trigger monitor isn't running. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Tue Jul 25, 2006 7:21 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
What OpSys and what version of MQ? _________________ -wayne |
|
Back to top |
|
 |
qizhirui |
Posted: Tue Jul 25, 2006 8:19 am Post subject: |
|
|
Novice
Joined: 24 Jun 2006 Posts: 14
|
wschutz wrote: |
What OpSys and what version of MQ? |
the operattion system is windows and the MQ version is v6.0 , but if not need to start the MQ trigger moniter manually, what should i do? please give me more details.
Last edited by qizhirui on Tue Jul 25, 2006 8:49 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 25, 2006 8:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need to start the trigger monitor.
You can start it manually.
You can start it automatically.
You can start it automatically in a number of different ways.
The easiest way is to create a Service in MQ Explorer, that controls the trigger monitor.
This may not be the best way for your particular location and security policy and etc. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Frnd |
Posted: Tue Nov 27, 2007 1:41 am Post subject: |
|
|
Apprentice
Joined: 04 Jun 2007 Posts: 33
|
Does this work only in Windows? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 27, 2007 2:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Frnd wrote: |
Does this work only in Windows? |
There's a trigger monitor for all platforms. Runs as a demon in Unix for instance. The same principles apply though.
It's also a bit naff posting on such an old thread. Start a shiny new thread of your own and refer to the old one. Be proud!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Frnd |
Posted: Tue Nov 27, 2007 3:50 am Post subject: |
|
|
Apprentice
Joined: 04 Jun 2007 Posts: 33
|
Thanks for the quick response and sorry that I'm still continuing the same loop
I tried creating a service with the below command.
DEFINE SERVICE ('INIT') +
DESCR(' ') +
STARTCMD('/usr/mqm/bin/runmqtrm') +
STARTARG('-m +myqmgr+ -q INITQ') +
STOPCMD('/usr/mqm/bin/amqsstop') +
STOPARG('-m +myqmgr+ -p +2563142+') +
STDOUT(home/tm_out') +
STDERR('/home/tm_err') +
CONTROL(QMGR) +
SERVTYPE(SERVER) +
REPLACE
Is there anything else I need to do ? Please let me know
I'm using AIX and MQ V6.0 |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 27, 2007 3:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Frnd wrote: |
Is there anything else I need to do ? Please let me know
I'm using AIX and MQ V6.0 |
Write a triggered application? Ensure the application meets the requirements for triggering laid out in the APG? Ensure your queues and other objects are correctly set to allow triggering?
It's too vauge a question. If you've set this up and it's not working, start a new thread explaining all that you've set up, what you think it should be doing & what it's actually doing along with relevant codes. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 27, 2007 4:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I offer, in a quite genuine attempt at assistance, this post:
http://www.mqseries.net/phpBB2/viewtopic.php?t=22295
I think the principles therein are an ideal way to not only frame questions such that you get the help you need, but focus your mind on what the actual question is that you're asking.
I can personally vouch for their effectiveness.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
amisinai |
Posted: Sun Dec 02, 2007 11:23 am Post subject: |
|
|
Novice
Joined: 17 Aug 2007 Posts: 10 Location: Israel
|
Hi
I think that the initq isn't defined properly, because of a little typing mistake...
DEFINE QLOCAL(QUEUE.LOCAL.T02) +
INITQ(QUEUEINIT) ....
DEFINE QLOCAL(QUEUEINIT01) ....
Avichai |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Dec 02, 2007 3:35 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Move to general forum. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|