Author |
Message
|
chaitu_bca |
Posted: Mon Jun 07, 2004 6:32 am Post subject: Query regarding Trigger message |
|
|
Novice
Joined: 05 Apr 2004 Posts: 20
|
In the case of trigger type First when is the trigger message removed from the initiation queue.
a) As soon as the application is called
OR
b) After the application completes execution. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 07, 2004 6:34 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It depends, probably, on the trigger monitor you are using. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
chaitu_bca |
Posted: Mon Jun 07, 2004 6:39 am Post subject: please explain |
|
|
Novice
Joined: 05 Apr 2004 Posts: 20
|
Can you please explain more about it. Like if we run the trigger monitor normally as runmqtrm -m QMGR -q INITIQ |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 07, 2004 6:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I can explain, certainly.
Can you tell me the reason you are asking? This isn't the kind of detail that one normally worries about. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
chaitu_bca |
Posted: Mon Jun 07, 2004 7:32 am Post subject: |
|
|
Novice
Joined: 05 Apr 2004 Posts: 20
|
I am sorry i should have explained the situation earlier, I have 2 queues which are triggered for first. Both call the same program when fired. when the first queue is triggered the application gets fired and runs successfully. Problem starts when the second queue fires. on the second Queue Due to a logical error the program hangs before it exits .After the program hangs the first queue stops processing messages and i noticed that some of the trigger messages are written to the dead letter queue. I am not able to clearly understand why the trigger messages related to the first queue are written to the dead letter queue instead of the normal initiation queue. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 07, 2004 7:40 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The trigger messages on the DLQ should have a Dead Letter Header on them. This will tell you the Dead Letter Reason code for the message being put on the DLQ - and may (just may) tell you why the trigger event couldn't be processed.
One possibility is if the two programs share resources - and the program that hangs up is locking those resources.
Some things to think about: http://www.mqseries.net/phpBB2/viewtopic.php?t=12988
You should definitely consider changing the process definitions for these two programs so that they are started as new tasks rather than having the trigger monitor wait for each of them to complete before it starts another triggered program. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|