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 » Reliable message

Post new topic  Reply to topic
 Reliable message « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Wed Mar 13, 2013 7:29 am    Post subject: Reliable message Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

When browsing a message, how do I determine if it is a reliable persistent message
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Mar 13, 2013 7:39 am    Post subject: Re: Reliable message Reply with quote

Grand High Poobah

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

Gideon wrote:
When browsing a message, how do I determine if it is a reliable persistent message


Check the persistence attribute of the MQMD
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Mar 13, 2013 7:44 am    Post subject: Re: Reliable message Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Gideon wrote:
When browsing a message, how do I determine if it is a reliable persistent message

What do you mean by "reliable"? A message is either persistent or non-persistent. There is no other state.
i.e.
Code:
if (msg.persistence == MQC.MQPER_PERSISTENT)
{
   // it is a persistent message
}
else
{
   // it is a non-persistent message
}

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Wed Mar 13, 2013 8:19 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Do you mean browsing with a GUI tool? Which one?
Back to top
View user's profile Send private message
Gideon
PostPosted: Wed Mar 13, 2013 9:14 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I meant "reliable persistent" as in the following link

http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Fcjj9000_.html

Also, I am trying to determine if a message is reliable persistent by using the WMQ explorer, right clicking on th equeue, and selecting "Browse messages"


On the General tab, the Persistence level is shown as "Persistent", but I can not determine if this means Assured or Reliable Persistence
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Mar 13, 2013 9:24 am    Post subject: Reply with quote

Grand High Poobah

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

Gideon wrote:
I meant "reliable persistent" as in the following link

http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Fcjj9000_.html


That link is for WAS not for WMQ

Gideon wrote:
On the General tab, the Persistence level is shown as "Persistent", but I can not determine if this means Assured or Reliable Persistence


Because, as my worthy associate pointed out, within WMQ there's either persistent or not persistent; there are no subtle shades of persistence.

A persistent WMQ message counts as "Assured Persistent" in the WAS link you posted. A non-persistent message counts as "Best Effort Nonpersistent"
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gideon
PostPosted: Wed Mar 13, 2013 10:34 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

Apparently what I was looking for is actually Semi-persistent

From former posts on this former, that means that the NPMCLASS is set to HIGH

When I am using the WMQ Explorer, Rt click on the queue, and select Browse, I can not find any thing that suggests an NPM CLASS

How can I find this ?
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Mar 13, 2013 10:40 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Gideon wrote:
How can I find this ?

restart the queue manager, see if the messages still exist on the queue.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 13, 2013 10:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

NPM class means Non Persistence Message class and determines some aspect of reliability. However remember that NPM messages cannot participate in assured delivery.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Mar 13, 2013 10:44 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
NPM class means Non Persistence Message class and determines some aspect of reliability.


NPM Class high means "the queue manager won't discard this non-persistent message when it starts up".
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Mar 13, 2013 11:03 am    Post subject: Reply with quote

Poobah

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

mqjeff wrote:
fjb_saper wrote:
NPM class means Non Persistence Message class and determines some aspect of reliability.


NPM Class high means "the queue manager won't discard this non-persistent message when it starts up".

At restart, the qmgr will make best-effort to retain non-persistent messages in an npmclass(high) queue, provided that the qmgr ended normally.
_________________
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
Gideon
PostPosted: Wed Mar 13, 2013 12:00 pm    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I got this to work.

I set the Queue to a NPMCLASS of HIGH, and sent non-persistent messages.

Upon Qmgr restart, the messages are still there

Is this performing something like a write to disk cache, and the control goes back to WMQ without waiting for a disk write through (lazy write) ?
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Wed Mar 13, 2013 12:22 pm    Post subject: Reply with quote

Poobah

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

Gideon wrote:

Is this performing something like a write to disk cache, and the control goes back to WMQ without waiting for a disk write through (lazy write) ?

No. At qmgr shutdown, any messages remaining in buffers will be hardened (written) to queue-holding disk.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Reliable message
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.