Posted: Mon Dec 14, 2015 11:18 pm Post subject: Time-to-live set on MQ7.5 through JMS is not reliable
Novice
Joined: 13 Nov 2014 Posts: 11
Hi all,
I set time-to-live to 5 mins on MQ 7.5 through JMS message producer,however, the message does not expire after 5 mins, it only expired only after around 8 mins by monitoring the curdepth of the queue. Does it mean that setting this field is not reliable for ensuring the message expires after the value set? Any hint is appreciated. Thanks.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
There are a number of discussions in this forum about Expired messages.
Take a look at them.
When you browse the message after posting does the Expity field have a decreasing value? If so then you can work out the actual time that value will hit zero. After that, the message will no longer ve available to read BUT may still be present according to the QDepth. At some time later MQ will get around to getting rid of the expired messages.
The important thing is to measure how long the message is available to be read from the queue.
You could devise a series of simple tests to test out your theory and prove it one way or another.
If by some chance that the message is available to be read after the set expiry time then you have all the data needed to raise a PMR. _________________ 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.
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