Author |
Message
|
CHF |
Posted: Thu Jun 02, 2005 4:51 am Post subject: Trigger a process using expired messages |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Hello All,
I am on z/OS and websphereMQ 5.3.
We have defined a queue and triggering is enabled. When a message comes it triggers a CICS job.
Whats happened is a message landed on the queue trigerring the process, the message is still there and its "Persistant" and "Exipry" is set on the message.
A weekly CICS bounce (restart) takes place, after CICS is back the expired messages are triggering the process again. We didn't browse the messages so the messages are still on the queue.
My question is whether expired messages can trigger a process?
Note: I tried to search in mqseries forum and couldn't find anything appropriate.
Thanks. _________________ CHF  |
|
Back to top |
|
 |
mqmhr |
Posted: Thu Jun 02, 2005 5:03 am Post subject: |
|
|
Centurion
Joined: 28 Dec 2004 Posts: 105
|
From the AP Guide
Quote: |
Since a message whose expiry time has elapsed may not actually be discarded until later, there may be messages on a queue that have passed their expiry time, and which are not therefore eligible for retrieval. These messages nevertheless count towards the number of messages on the queue for all purposes, including depth triggering. |
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 02, 2005 5:03 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Expired messages count against the qdepth.
QDepth is one of the conditions for triggering. If a trigger monitor starts up, and the queue is set to trigger on first and the queue depth is > 0, then a trigger message will be generated. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
CHF |
Posted: Thu Jun 02, 2005 5:08 am Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
jefflowrey wrote: |
Expired messages count against the qdepth.
QDepth is one of the conditions for triggering. If a trigger monitor starts up, and the queue is set to trigger on first and the queue depth is > 0, then a trigger message will be generated. |
so, trigger message will be generated even message is expired ??
Is there any reference in any pdf of this? _________________ CHF  |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 02, 2005 5:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
CHF wrote: |
Is there any reference in any pdf of this? |
I think mqmhr showed one... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Nigelg |
Posted: Thu Jun 02, 2005 5:45 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
Since the trigger msg is generated when the msg is put to the queue, the msg cannot be expired at the time the trigger msg is generated.
The msg can expire at any time after that, but a get from the queue will remove the expired msg, if the msg would have been returned to the app if it had not expired. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 02, 2005 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Nigelg wrote: |
Since the trigger msg is generated when the msg is put to the queue, the msg cannot be expired at the time the trigger msg is generated. |
Except in cases where the trigger monitor was started after the message was put to the queue. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|