Author |
Message
|
psn |
Posted: Wed Mar 10, 2004 5:49 am Post subject: Expiry MQ Messages |
|
|
Disciple
Joined: 30 Oct 2002 Posts: 193 Location: France
|
Hi,
How can I find out how much messages are expired on a queue ?
Thanks
PSN |
|
Back to top |
|
 |
vmcgloin |
Posted: Wed Mar 10, 2004 6:38 am Post subject: |
|
|
Knight
Joined: 04 Apr 2002 Posts: 560 Location: Scotland
|
If you want to keep track of messages that have expired you should look at report options and the resulting feedback codes in the report messages.
From APR:
Quote: |
A report is generated when an expired message is discarded, if the message specified one of the MQRO_EXPIRATION_* report options. If none of these options is specified, no such report is generated; the message is assumed to be no longer relevant after this time period (perhaps because a later message has superseded it).
Any other program that discards messages based on expiry time must also send an appropriate report message if one was requested. |
|
|
Back to top |
|
 |
EddieA |
Posted: Wed Mar 10, 2004 7:01 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
If you do use the Expired Message Report option, be aware that the report is generated when the message *IS* discarded, not when it actually expires.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kman |
Posted: Thu Mar 11, 2004 1:34 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
In other words.. the expired messages only get to be candidate for expiry.. until someone or an application goes about to pick it up.. then only they get expired and deleted from the queue. The report would only goes out after this. |
|
Back to top |
|
 |
EddieA |
Posted: Thu Mar 11, 2004 7:15 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Absolutely correct. (Except on z/OS, where I seem to remember there's a way to periodically "clear" the expired messages).
And don't forget, that 'application' could be an MCA sending the message out to a Channel.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 11, 2004 7:32 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
A qmgr parameter:
EXPRYINT: specifies how often queues are scanned to discard expired messages.
Supported only on z/OS. |
|
Back to top |
|
 |
|