Author |
Message
|
In_love_with_MQ |
Posted: Thu Feb 16, 2006 6:22 am Post subject: TRIGGER ON AIX 5.3 :: why trigger message not seen ? |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi ,
I define
DEFINE QLOCAL ('DQUEUE') +
TRIGGER +
TRIGTYPE(EVERY) +
PROCESS('X') +
INITQ('QUEUE.INITQ')
and Process X .
I put a message using amqsput sample into DQUEUE and check the depth of init q 'QUEUE.INITQ' But find that depth is 0 .
Why has the trigger message not generated in initq . I am using MQ6.0 ON AIX 5.3?Please help . My mq version is 6.0.1.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 16, 2006 6:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Read up on the manuals.
Triggering is very fast. The message is not seen because it is consumed by the trigger monitor.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Feb 16, 2006 6:29 am Post subject: Trigger Monitor is off |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi saper ,
Yes i know that . But i have kept my trigger Monitor off so that to see whether trigger message arrives on the Initq .
I cannot see any trigger message coming on the initq .Also please note that the trigger monitor which is monitoring this Initq is not up .
plss help .. |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Feb 16, 2006 6:32 am Post subject: Re: Trigger Monitor is off |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
In_love_with_MQ wrote: |
Hi saper ,
Yes i know that . But i have kept my trigger Monitor off so that to see whether trigger message arrives on the Initq .
I cannot see any trigger message coming on the initq .Also please note that the trigger monitor which is monitoring this Initq is not up .
plss help .. |
|
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 16, 2006 6:43 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
Yes i know that . But i have kept my trigger Monitor off so that to see whether trigger message arrives on the Initq .
|
Yeah, you need to read the section on triggering in the application programming reference....
If no trigger monitor has the initq open, the qmgr does not generate a trigger message..... _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 16, 2006 6:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
wschutz wrote: |
If no trigger monitor has the initq open, the qmgr does not generate a trigger message..... |
Well, the qmgr doesn't care if the application that has the initq open is a trigger monitor or not... It just looks at the open Input count.
So In_love_with_MQ could run something like the q program to save trigger messages to a file, and that would be sufficient to cause trigger messages to be generated, I think. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 16, 2006 6:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Call me crazy (you won't be the first), but don't I remember something about one the pre-requisites for a trigger message being raised by the queue manager being a trigger monitor having the initq open?
Yes I do - Chapter 14, Application Programming Guide!  |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 16, 2006 6:51 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
jefflowrey wrote: |
wschutz wrote: |
If no trigger monitor has the initq open, the qmgr does not generate a trigger message..... |
Well, the qmgr doesn't care if the application that has the initq open is a trigger monitor or not... It just looks at the open Input count.
So In_love_with_MQ could run something like the q program to save trigger messages to a file, and that would be sufficient to cause trigger messages to be generated, I think. |
Yeah, of course, I was trying to keep it simple...  _________________ -wayne |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Feb 16, 2006 7:01 am Post subject: So trigger Messages in initq cannot be sEEN |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
wschutz wrote: |
jefflowrey wrote: |
wschutz wrote: |
If no trigger monitor has the initq open, the qmgr does not generate a trigger message..... |
Well, the qmgr doesn't care if the application that has the initq open is a trigger monitor or not... It just looks at the open Input count.
So In_love_with_MQ could run something like the q program to save trigger messages to a file, and that would be sufficient to cause trigger messages to be generated, I think. |
Yeah, of course, I was trying to keep it simple...  |
Does that mean that Initq DEPTH CAN NEVER be seen like
dis QL(INITQ) curdepth ?? Since you say that Trigger Monitor keeps reading the initq and dis ql(initq) curdepth is always 0 ??? |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 16, 2006 7:08 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Actually, trigger messages CAN back up....
scenario:
You trigger a long running program and you DON'T trigger it in the background (ie "start" on windows / "&" on unix). Basically, then the trigger monitor can't get another trigger message until that program ends. The INITQ is still open, so the qmgr can generate another trigger message (especially for trigtype=every), so you CAN have a curdepth>0. _________________ -wayne |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Feb 16, 2006 7:25 am Post subject: I have made as u told but no output |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
wschutz wrote: |
Actually, trigger messages CAN back up....
scenario:
You trigger a long running program and you DON'T trigger it in the background (ie "start" on windows / "&" on unix). Basically, then the trigger monitor can't get another trigger message until that program ends. The INITQ is still open, so the qmgr can generate another trigger message (especially for trigtype=every), so you CAN have a curdepth>0. |
Hi as you told i have kept my trigger monitor on
757958 565382 0 14:52:54 pts/0 0:00 runmqtrm -m WAS001 -q UNDAINI
Now i have defined a Process which the Trig monitor shall execute .
a)
DEFINE QLOCAL ('DQUEUE') +
TRIGGER +
TRIGTYPE(EVERY) +
PROCESS('X') +
INITQ('UNDAINI')
b)
DEFINE PROCESS (X) REPLACE +
DESCR('Dead-letter queue handler adapter') +
APPLTYPE(UNIX) +
APPLICID('/usr/mqm/bin/pp.sh')
where pp.sh is a simple script which has the following entries
dspmq >> 123.txt
c)
Now i tried to put 1 message in DQUEUE and i can see that 123.txt is still empty
which means the trigger monitor has not executed the script or which means a trigger messages is not generated .
Please Note that i am on AIX 5.3 With MQ6.0.1.0 ..WHAT COULD BE THE ISSUE ??
Is there something else i am missing which is not creating the trigger message??? |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 16, 2006 7:31 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
A couple of suggestions.....
(1) run the trigger monitor in a command window where you can see its output
(2) change pp.sh to echo something rather than writing to a file (echo `dspmq`)
(3) don't put YOUR scripts in the mqm directories...
The trigger message might wind up in the dead letter queue, so check that as well.... _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 16, 2006 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Feb 16, 2006 9:05 am Post subject: Tried all Options still No trigger messages . |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi ,
Inspite of trying all loopholes , still the trigger Monitor shows as below
__________________________________________________
Waiting for a trigger message
which means the Trigger messages is not being created at all even if the Patent q Trigtype is EVERY .
Is there any issues with TM on mq6.0.1.0 and aix 5.3 ..Any other cares or is there any bug in product :Please throw some light .... |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 16, 2006 9:06 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
what happens if, with the trigger monitor running, you disable triggering on the input queue and then re-enable it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|