Author |
Message
|
deeps1281 |
Posted: Fri May 30, 2008 8:05 pm Post subject: Queues Purged once QueueManager goes down. |
|
|
Apprentice
Joined: 31 Aug 2005 Posts: 29
|
Hi,
I'm carrying out a few rounds of testing where I have to end my queue manager .Whats happening is that when the queue manager is restarted,messages in few queues get purged where as other queues retain their messages.All queues are non persistent.
Can anyone tell me,whats the criteria which defines which queues gets purged once a queuemanager goes down.
Thanks in advance. |
|
Back to top |
|
 |
vinbud117 |
Posted: Sat May 31, 2008 3:22 am Post subject: Queues Purged once QueueManager goes down. |
|
|
Acolyte
Joined: 22 Jul 2005 Posts: 61
|
The messages must be persistent. The Persistence field in the MQMD header must be set to MQPER_PERSISTENT for the message to survive the QM restart.
Regards,
Vinay. |
|
Back to top |
|
 |
deeps1281 |
Posted: Tue Jun 03, 2008 1:59 am Post subject: Queues Purged once QueueManager goes down |
|
|
Apprentice
Joined: 31 Aug 2005 Posts: 29
|
Thanks for the reply,
I have set the messages as persistent.
Any idea,when do we need to set the messages as persistent vs setting queues as persistent.
If i know that all my messages need to be persisted,is there any benefit in choosing message persistence over queue persistence.
Thanks |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Jun 03, 2008 2:27 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 03, 2008 2:34 am Post subject: Re: Queues Purged once QueueManager goes down. |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
vinbud117 wrote: |
The messages must be persistent. The Persistence field in the MQMD header must be set to MQPER_PERSISTENT for the message to survive the QM restart... |
Also bear in mind that the NPMCLASS attribute will also cause messages to be retained on controlled queue manager shut-down. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 03, 2008 3:18 am Post subject: Re: Queues Purged once QueueManager goes down. |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
exerk wrote: |
Also bear in mind that the NPMCLASS attribute will also cause messages to be retained on controlled queue manager shut-down. |
This is backwards. NPMCLASS prevents messages from being discarded at queue manager startup. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 03, 2008 4:37 am Post subject: Re: Queues Purged once QueueManager goes down. |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
jefflowrey wrote: |
exerk wrote: |
Also bear in mind that the NPMCLASS attribute will also cause messages to be retained on controlled queue manager shut-down. |
This is backwards. NPMCLASS prevents messages from being discarded at queue manager startup. |
But does it not amount to the same thing?  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|