ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Queues Purged once QueueManager goes down.

Post new topic  Reply to topic
 Queues Purged once QueueManager goes down. « View previous topic :: View next topic » 
Author Message
deeps1281
PostPosted: Fri May 30, 2008 8:05 pm    Post subject: Queues Purged once QueueManager goes down. Reply with quote

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
View user's profile Send private message
vinbud117
PostPosted: Sat May 31, 2008 3:22 am    Post subject: Queues Purged once QueueManager goes down. Reply with quote

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
View user's profile Send private message
deeps1281
PostPosted: Tue Jun 03, 2008 1:59 am    Post subject: Queues Purged once QueueManager goes down Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Tue Jun 03, 2008 2:27 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

There is no such thing as a persistent or non-persistent queue. A default persistence queue setting DEFPSIST is defined at the queue level, but persistence is set at the message level.

quite like an eye opener for me.. :
http://www.ibm.com/developerworks/websphere/library/techarticles/0605_mcnamara/0605_mcnamara.html
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
exerk
PostPosted: Tue Jun 03, 2008 2:34 am    Post subject: Re: Queues Purged once QueueManager goes down. Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 03, 2008 3:18 am    Post subject: Re: Queues Purged once QueueManager goes down. Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Tue Jun 03, 2008 4:37 am    Post subject: Re: Queues Purged once QueueManager goes down. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Queues Purged once QueueManager goes down.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.