|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Subscription Message Expiry |
« View previous topic :: View next topic » |
Author |
Message
|
smdavies99 |
Posted: Wed Aug 14, 2013 2:49 am Post subject: Subscription Message Expiry |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
This is sort of a continuation of this
http://www.mqseries.net/phpBB2/viewtopic.php?t=59013
I have a broker 9.0.0.0 test rig setup and working. It is also publishing Monitoring events to the QM (7.5.0.1 running on Server 2008 R2).
I create a subscription to the topic.
Code: |
DEFINE SUB ('MONITORING.REMOTE') +
DESTQMGR(' ') +
DEST('MONITORING.REMOTE') +
DESTCLAS(PROVIDED) +
EXPIRY(16440) +
PUBACCT(16010515000000A86220826DFB4DBADEC365CAEB0300000000000-
0000000000B) +
PUBAPPID(' ') +
PUBPRTY(ASPUB) +
PSPROP(MSGPROP) +
REQONLY(NO) +
SELECTOR('') +
SUBLEVEL(1) +
SUBSCOPE(ALL) +
SUBUSER('MUSR_MQADMIN') +
TOPICSTR('$SYS/Broker/TESTBRKR/Monitoring/#') +
TOPICOBJ('FlowMonitoring') +
USERDATA(' ') +
VARUSER(ANY) +
WSCHEMA(TOPIC) +
REPLACE
|
Yet the messages are put on the destination queue with unlimited expiry.
Am I missing something? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 14, 2013 4:53 am Post subject: Re: Subscription Message Expiry |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
Yet the messages are put on the destination queue with unlimited expiry.
Am I missing something? |
Well as indicated in that rather fraught thread you mention, it's my assertion that such messages are always put with unlimited expiry. It's my belief that the EXPIRY parameter of the subscription controls the time to live of the subscription, not the subscribed messages.
In the previous thread our resident perfectionist and training champion indicated a monitoring profile could be used to control expiry time before backtracking rather. I still don't see how you could do that & would be interested in a method. His bracktracking suggestion of an intermediate flow which subscribed and set the expiry could of course be made to work. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Aug 14, 2013 5:00 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Vitor,
I think you might be correct here and that the only way to time-limit the messages published is to run them through a simple broker flow or a dedicated application.
If you aren't using a system with broker then a dedicated application seems to be the only way to do this which seems to me to be an issue with the WMQ base product.
Why is making a published message expire after a set period so difficult? IMHO, it shouldn't be. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 14, 2013 5:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
Why is making a published message expire after a set period so difficult? IMHO, it shouldn't be. |
Time to compose that RFE perhaps. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|