Author |
Message
|
Gideon |
Posted: Wed Mar 13, 2013 7:29 am Post subject: Reliable message |
|
|
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 |
|
 |
Vitor |
Posted: Wed Mar 13, 2013 7:39 am Post subject: Re: Reliable message |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Wed Mar 13, 2013 7:44 am Post subject: Re: Reliable message |
|
|
 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 |
|
 |
zpat |
Posted: Wed Mar 13, 2013 8:19 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Do you mean browsing with a GUI tool? Which one? |
|
Back to top |
|
 |
Gideon |
Posted: Wed Mar 13, 2013 9:14 am Post subject: |
|
|
Chevalier
Joined: 18 Aug 2009 Posts: 403
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 13, 2013 9:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
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 |
|
 |
Gideon |
Posted: Wed Mar 13, 2013 10:34 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Mar 13, 2013 10:40 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Mar 13, 2013 10:40 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Mar 13, 2013 10:44 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Wed Mar 13, 2013 11:03 am Post subject: |
|
|
 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 |
|
 |
Gideon |
Posted: Wed Mar 13, 2013 12:00 pm Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Wed Mar 13, 2013 12:22 pm Post subject: |
|
|
 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 |
|
 |
|