Author |
Message
|
ghoshly |
Posted: Tue Jun 03, 2008 8:30 pm Post subject: Triggering based on Message expiry |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hi,
I know that we can set a expiry period of a message in MQMD and if that period gets over before any application gets it from the queue , Queue manager will clear the message from the queue.Please correct me if I am wrong.
My question is can we trigger any application (eg. exit program) based on the expiry of a message ?
Thanks in advance.  |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Jun 03, 2008 8:39 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
AFAIK we can not do so...
we can trigger an application only when a message arrives in a particular queue.. not when it expires.. which is handled by MQ quite silently _________________ Cheers |
|
Back to top |
|
 |
elvis_gn |
Posted: Tue Jun 03, 2008 9:20 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi ghoshly,
You can, if i'm not wrong...use the expiry reporting and move it to another queue, and trigger that.
Regards. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Jun 03, 2008 11:48 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
please keep in mind that the message may expire on the queue, and that the expiry report is created when..... some application tries to get the message or when the queuemanager removes the expired message (EXPRYINT). So there may be a time gap between the expiry time and the time the report is created. _________________ Regards, Butcher |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 04, 2008 1:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Keep also in mind that the report gets sent (IIRC) to the reply to destination.
This may not be where you'd like the triggered program to run...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jun 04, 2008 6:07 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
The expiry period includes time in any queue, not just the destination queue. This includes a transmission queue and dead letter queue. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|