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 » How to change the Queue Persistence NO to YES

Post new topic  Reply to topic Goto page 1, 2, 3  Next
 How to change the Queue Persistence NO to YES « View previous topic :: View next topic » 
Author Message
aradha
PostPosted: Fri Aug 14, 2009 1:12 am    Post subject: How to change the Queue Persistence NO to YES Reply with quote

Apprentice

Joined: 16 Dec 2008
Posts: 45

hi how to change the persistence for the queue..
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Aug 14, 2009 1:19 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Two very easy steps...

1. Read the relevant manual.
2. Do as the manual says.
_________________
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
aradha
PostPosted: Fri Aug 14, 2009 1:28 am    Post subject: Reply with quote

Apprentice

Joined: 16 Dec 2008
Posts: 45

which manual i have to fallow can you send that then i can look for tht
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Aug 14, 2009 1:35 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Look at my tag line, it will give you a clue where to look, also go and have a look HERE
_________________
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
fschofer
PostPosted: Fri Aug 14, 2009 2:24 am    Post subject: Re: How to change the Queue Persistence NO to YES Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

aradha wrote:
hi how to change the persistence for the queue..


Hi,
by the way its the default persistence which is only used if the putting application does not specify what it wants.
Better change you application to create persistence messages.

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Sat Aug 15, 2009 8:13 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
by the way its the default persistence which is only used if the putting application does not specify what it wants.

Not exactly.

The initial value of the persistence field of the MQMD is MQPER_PERSISTENCE_AS_Q_DEF, meaning that the message is to take on the persistence value setting of the queue attribute. The initial value of the queue attribute is non-persistent.

The MQMD must have one of these values for persistence:
1. MQPER_PERSISTENT
2. MQPER_NOT_PERSISTENT
3. MQPER_PERSISTENCE_AS_Q_DEF

If the MQMD persistence field is not one of these, the MQPUT fails. Persistence is not a default. There are near zero defaults in MQ. There are initial values - that may or may not make sense for you.

It is unfortunate that the MQ factory uses names like SYSTEM.DEFAULT.LOCAL.QUEUE. With the word DEFAULT, a novice assumption would be that this queue would be used as a default if some other queue was unavailable. They should have named it SYSTEM.TEMPLATE.LOCAL.QUEUE. Whoa! It's a template, not a default.
_________________
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
View user's profile Send private message
fschofer
PostPosted: Mon Aug 17, 2009 12:08 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

still the queue parameter is called DEFPSIST and aradha asked for the queue not the MQMD.

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Mon Aug 17, 2009 5:23 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
still the queue parameter is called DEFPSIST and aradha asked for the queue not the MQMD.

Yes, but messages are persistent or non-persistent, queues are neither.
_________________
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
View user's profile Send private message
aradha
PostPosted: Thu Aug 20, 2009 5:46 am    Post subject: Reply with quote

Apprentice

Joined: 16 Dec 2008
Posts: 45

Yes i asked for Queue parameters
i think we can alter the queue properties and set them
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Aug 20, 2009 6:06 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

aradha wrote:
Yes i asked for Queue parameters
i think we can alter the queue properties and set them


Ok, ill bite.....

Not withstanding all the good points that others have made about queues not being persistant, I really dont get why people wish to rely on the default persitence of a queue.

Either data loss can be tolerated or it cant. This context is modelled by the application. Relying on the default persistence of a queue is like saying "I know i've got this really critical business data and we must not lose it, but rather than guaranteeing the data is not lost ill let an MQAdmin decide if it really is important to the business or not".

Sorry for biting, just my thoughts.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Aug 20, 2009 6:19 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

WMBDEV1 wrote:
aradha wrote:
Yes i asked for Queue parameters
i think we can alter the queue properties and set them


Ok, ill bite.....

Not withstanding all the good points that others have made about queues not being persistant, I really dont get why people wish to rely on the default persitence of a queue.

Either data loss can be tolerated or it cant. This context is modelled by the application. Relying on the default persistence of a queue is like saying "I know i've got this really critical business data and we must not lose it, but rather than guaranteeing the data is not lost ill let an MQAdmin decide if it really is important to the business or not".

Sorry for biting, just my thoughts.


Singing off the same hymn sheet...relying on the queue definition means that today's persistent message is tomorrow's non-persistent message. A good developer (Hopsala, you out there?) will always allow the 'customer' to decide whether they want to have explicit persistence, explicit non-persistence, or 'flippable' by relying on the queue attributes. That's what I recommend when I am doing developer support
_________________
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
Vitor
PostPosted: Thu Aug 20, 2009 6:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

This is a hymm which has been sung many times on the forum, and there's no "right" answer. The 2 verses go something like this:

"Only the application knows if data loss can be tolerated so the application must set persistence"

"If the application is allowed to decided persistence, then all messages will be persistent because developers think their messages are critical"

I repeat that IMHO there's no right answer; it depends on the site, how good code QA is, if design is controlled via the application or the software, etc, etc.

But a search will turn up many attempts to find a right answer!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Aug 20, 2009 6:55 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Vitor wrote:

"If the application is allowed to decided persistence, then all messages will be persistent because developers think their messages are critical"


I personally dont believe this to be true.

Developers worth their salt should be able to understand the context of the data and whether its persistent or not. I have previously raised defects when search requests have been incorrectly set as persistent. I expect this sort of stuff to be checked in system test with defects raised accordingly.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Aug 20, 2009 6:57 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
"Only the application knows if data loss can be tolerated so the application must set persistence"

"If the application is allowed to decide persistence, then all messages will be persistent because developers think their messages are critical"


Which is why I argue that it should be set in a configuration file...

...29 to go!
_________________
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
Vitor
PostPosted: Thu Aug 20, 2009 7:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

WMBDEV1 wrote:
I personally dont believe this to be true.


I've personally seen this. One application team lead told me to my face, "all our messages are persistent because if they weren't important we wouldn't send them".

WMBDEV1 wrote:
Developers worth their salt should be able to understand the context of the data and whether its persistent or not.


Who are these people? How many developers understand the context of their application never mind the data, and how many write the code according to the specification they're given within time & budget?

WMBDEV1 wrote:
I expect this sort of stuff to be checked in system test with defects raised accordingly.


System test picks up that everything is persistent & the queue manager logs need to be resized? Your system test, like your developers, are of a much higher calibre than I seem to encounter.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2, 3  Next Page 1 of 3

MQSeries.net Forum Index » General IBM MQ Support » How to change the Queue Persistence NO to YES
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.