Author |
Message
|
Lefebvre |
Posted: Fri Oct 20, 2006 6:22 am Post subject: Messages on the queue |
|
|
Novice
Joined: 10 Sep 2004 Posts: 19
|
Good Morning all,
This may seem like a silly question but I need to know how long a message will sit on a queue or if there is a time limit.
Thanks,
marsha |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Oct 20, 2006 6:31 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
It depends on the message persistence and if it has an expiry set.
A persistent message with no expiry will stay on the queue indefinately.
A non-persistent message with no expiry will stay on the queue until the queue manager is recycled.
Messages with expiration set will stay on the queue until that expiration is reached (this is a time span and not a set date and time) and something issues a GET on the queue. |
|
Back to top |
|
 |
Lefebvre |
Posted: Fri Oct 20, 2006 6:36 am Post subject: |
|
|
Novice
Joined: 10 Sep 2004 Posts: 19
|
Thanks for the help.
I thought that was how it worked but someone was making me second guess myself.
Thanks for clarifiying.
marsha |
|
Back to top |
|
 |
zpat |
Posted: Fri Oct 20, 2006 7:53 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Or until expired messages are purged by the queue manager (z/OS only feature?) |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Oct 20, 2006 8:40 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
zpat wrote: |
Or until expired messages are purged by the queue manager (z/OS only feature?) |
The contract has always been only that expired messaages won't ever be eligible for GET.
Expired messages get pruned in v6 even on distributed. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
irony |
Posted: Fri Apr 06, 2007 7:24 am Post subject: expiry |
|
|
Apprentice
Joined: 18 Nov 2005 Posts: 35 Location: US
|
jefflowrey wrote: |
zpat wrote: |
Or until expired messages are purged by the queue manager (z/OS only feature?) |
Expired messages get pruned in v6 even on distributed. |
Jeff;
Is there a way to stop this pruning process? The expired messages are purged on a 'Put' also? Or only on 'Get'?
Thanks, |
|
Back to top |
|
 |
EddieA |
Posted: Fri Apr 06, 2007 11:08 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
kevinf2349 wrote: |
A non-persistent message with no expiry will stay on the queue until the queue manager is recycled. |
Unless NPMCLASS(HIGH) is set for the queue.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Apr 06, 2007 11:14 am Post subject: Re: expiry |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
irony wrote: |
Is there a way to stop this pruning process? |
No
get's don't get expired messages and there is also the cleaner running around in different places... AFAIK there is no documentation on this and only known to hursley _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
EddieA |
Posted: Fri Apr 06, 2007 11:14 am Post subject: Re: expiry |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
irony wrote: |
Is there a way to stop this pruning process? The expired messages are purged on a 'Put' also? Or only on 'Get'? |
Why would you want to stop it, as once the message has expired, there's no way to retreive it.
It always used to be a GET, that "would" have retrieved the message if it wasn't expired. But that's not to say that will always be the case.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Apr 06, 2007 11:17 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
EddieA wrote: |
kevinf2349 wrote: |
A non-persistent message with no expiry will stay on the queue until the queue manager is recycled. |
Unless NPMCLASS(HIGH) is set for the queue.
Cheers, |
yeah, that's one of the possible new trick questions on the v6 certfication exam... (BTW feature was introduced in 5.3 CSD 6) _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Apr 06, 2007 3:41 pm Post subject: |
|
|
Guest
|
Michael Dag wrote: |
EddieA wrote: |
kevinf2349 wrote: |
A non-persistent message with no expiry will stay on the queue until the queue manager is recycled. |
Unless NPMCLASS(HIGH) is set for the queue.
Cheers, |
yeah, that's one of the possible new trick questions on the v6 certfication exam... (BTW feature was introduced in 5.3 CSD 6) |
According to the doc. with NPMCLASS(HIGH), the messages will survive a qmgr restart IF the qmgr terminates normally. |
|
Back to top |
|
 |
|