Author |
Message
|
tmoeller |
Posted: Thu Apr 05, 2007 5:34 am Post subject: Setting up triggering |
|
|
Newbie
Joined: 05 Apr 2007 Posts: 8
|
Hi all,
i need to setup some triggering for a local queue on a windows machine. i have never done this before and started reading some docs and tried to configure the channels. i want an external program (windows .exe) to be triggered to read the message from the queue. The .exe alone works fine, but the trigger seems to have no effect.
Is there anywhere a good doc (HowTo), where all the steps are described in detail to get something like this up and running.
Perhaps anybody can provide a link or anything else.
Thanks for any suggestions!
Cheers
Thorsten |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 05, 2007 5:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
First, there's a few different FAQs and things labelled "TT" that will help.
Second, when trying to trigger applications, channels are not involved at all. So anything you read about triggering channels is completely irrelevant.
You just need to run a trigger monitor against an initiation queue, create a process definition, and adjust the properties of the queue you'd like to trigger, to enable triggering and use the initq and process definition. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Mensch |
Posted: Thu Apr 05, 2007 7:22 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Apr 05, 2007 9:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
tmoeller |
Posted: Tue Apr 10, 2007 4:25 am Post subject: |
|
|
Newbie
Joined: 05 Apr 2007 Posts: 8
|
Hi,
thanks for the links you posted. I read them carefully and ran the triggermonitor from the command line instead of the built in one from the MQExplorer.
There i get the Error Message that the command "TMC" cannot be found.
Has anybody an idea where this comes from???
Cheers
Thorsten |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 10, 2007 4:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
tmoeller wrote: |
Has anybody an idea where this comes from???
|
Not directly, I'm not familar with that as a command to start a trigger monitor. Can you point me at the reference you're using? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
tmoeller |
Posted: Tue Apr 10, 2007 4:51 am Post subject: |
|
|
Newbie
Joined: 05 Apr 2007 Posts: 8
|
Hi Vitor,
i don't know exactly what you mean with reference, but i have a process-definition pointing to d:\testapplication.exe (EnvData).
Is that what you ask for??
Thorsten |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 10, 2007 4:52 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
TMC would show up at the start of the command arguments passed to the program that got triggered, as it is the first part of the identifier for the MQTMC2 structure... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 10, 2007 4:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
tmoeller wrote: |
There i get the Error Message that the command "TMC" cannot be found.
|
So if you've got a process definition, how come it's trying to run what sounds like the front of the trigger header as a command??  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dgolding |
Posted: Tue Apr 10, 2007 5:05 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Sounds like the command that's being run by the trigger monitor ONLY contains the TMC - the command is missing..... why don't you post your definition the process here, so it can be examined? |
|
Back to top |
|
 |
tmoeller |
Posted: Tue Apr 10, 2007 6:21 am Post subject: |
|
|
Newbie
Joined: 05 Apr 2007 Posts: 8
|
Hi all,
all your questions lead me back to my initial question. What steps have to be taken to setup a trigger on a queue that executes an external windows program correctly?
I don't know if anything i configured is done right. Perhaps sombody can point out what has to be configured and what are the minimum parameters.
I do it all from the MQ Explorer and don't know if it is working right and how to do it better from the command line.
So, be indulgently with a newbie.
Thanks
Thorsten |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 10, 2007 6:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
tmoeller wrote: |
What steps have to be taken to setup a trigger on a queue that executes an external windows program correctly?
|
These steps are listed in the links & docs already referred to. If you are accidently triggering the message as a process then you have clearly already set something up. IMHO any attempt we make to restate or rephrase these instructions is likely to lead to confusion & misunderstanding.
tmoeller wrote: |
I do it all from the MQ Explorer and don't know if it is working right and how to do it better from the command line.
|
Do not use MQExplorer. It's easier & clearly using script, especially as you can post what you've done in circumstances like this.
Extract the Process description as dgolding has requested and we'll stand a better chance of seeing what's wrong. Given the symptoms you're experiencing this has to be the most likely point of failure.
Which implies you've done the rest of it right of course!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Apr 10, 2007 7:10 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Sounds to me as if your application is dropping a message onto the wrong queue. If you are dropping the message onto the same queue that you are running the trigger monitor against....that would be the wrong one. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 10, 2007 7:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kevinf2349 wrote: |
Sounds to me as if your application is dropping a message onto the wrong queue. If you are dropping the message onto the same queue that you are running the trigger monitor against....that would be the wrong one. |
Good point.
So you should dump out the queue definitions as well and post those. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
tmoeller |
Posted: Tue Apr 10, 2007 11:53 pm Post subject: |
|
|
Newbie
Joined: 05 Apr 2007 Posts: 8
|
Hi,
the Triggermonitor is listening on SYSTEM.DEFAULT.INITIATION.QUEUE.
These are the definitions:
* QMNAME (MSCOUT) +
* CRDATE (2007-04-05) +
* CRTIME (12.24.20) +
* ALTDATE (2007-04-05) +
* ALTTIME (12.24.20) +
* QMID (MSCOUT_2007-04-05_12.24.20) +
*
ALTER QMGR +
AUTHOREV(DISABLED) +
DEADQ(' ') +
DEFXMITQ(' ') +
DESCR(' ') +
INHIBTEV(DISABLED) +
LOCALEV(DISABLED) +
MAXHANDS(256) +
MAXUMSGS(10000) +
PERFMEV(DISABLED) +
REMOTEEV(DISABLED) +
STRSTPEV(ENABLED) +
TRIGINT(999999999) +
MAXMSGL(4194304) +
CHAD(DISABLED) +
CHADEV(DISABLED) +
CHADEXIT(' ') +
CLWLEXIT(' ') +
CLWLDATA(' ') +
REPOS(' ') +
REPOSNL(' ') +
CLWLLEN(100) +
SSLCRLNL (' ') +
SSLKEYR ('C:\Programme\IBM\WebSphere MQ\qmgrs\MSCOUT\ssl\key') +
FORCE
DEFINE QLOCAL ('Melian.Scout.Data') +
* CRDATE (2007-04-05) +
* CRTIME (12.25.51) +
* ALTDATE (2007-04-05) +
* ALTTIME (15.45.43) +
DESCR('WebSphere MQ Default Local Queue') +
PUT(ENABLED) +
DEFPRTY(0) +
DEFPSIST(NO) +
SCOPE(QMGR) +
GET(ENABLED) +
MAXDEPTH(5000) +
MAXMSGL(4194304) +
SHARE +
DEFSOPT(SHARED) +
MSGDLVSQ(PRIORITY) +
HARDENBO +
USAGE(NORMAL) +
TRIGGER +
TRIGTYPE(EVERY) +
TRIGDPTH(1) +
TRIGMPRI(0) +
TRIGDATA(' ') +
PROCESS('MSCOUT.READER') +
INITQ('SYSTEM.DEFAULT.INITIATION.QUEUE') +
RETINTVL(999999999) +
BOTHRESH(0) +
BOQNAME(' ') +
QDEPTHHI(80) +
QDEPTHLO(20) +
QDPMAXEV(ENABLED) +
QDPHIEV(DISABLED) +
QDPLOEV(DISABLED) +
QSVCINT(999999999) +
QSVCIEV(NONE) +
DISTL(NO) +
CLUSTER(' ') +
CLUSNL(' ') +
DEFBIND(OPEN) +
REPLACE
DEFINE CHANNEL ('CLIENT.MSCOUT.TCP') CHLTYPE(SVRCONN) +
* ALTDATE (2007-04-05) +
* ALTTIME (14.41.26) +
TRPTYPE(TCP) +
DESCR(' ') +
HBINT(300) +
MAXMSGL(4194304) +
MCAUSER('svcmqm') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
SSLCAUTH(REQUIRED) +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
REPLACE
DEFINE PROCESS ('MSCOUT.READER') REPLACE +
* ALTDATE (2007-04-05) +
* ALTTIME (16.19.07) +
DESCR('Writes Message Content into DB') +
APPLTYPE(WINDOWSNT) +
APPLICID(' ') +
USERDATA(' ') +
ENVRDATA('D:\CMDBScoutReader.exe')
Thanks
Thorsten |
|
Back to top |
|
 |
|