-
1. Re: Does JMS messages time out?
adrian.brock May 28, 2003 8:02 PM (in response to mikeklem)This has recently been fixed for 3.2 in CVS.
3.0 still only checks the expiration when it
attempts delivery to the client.
If we get some good feedback we can backport
the fix to 3.0
How are you setting the time-to-live?
You should be setting on the publish operation
or setting a default on the publisher.
The following doesn't work as you might expect,
read the javadocs for publish(msg)
TextMessage msg = session.createTextMessage();
msg.setTimeToLive(whatever);
publisher.publish(msg);
Regards,
Adrian -
2. Re: Does JMS messages time out?
mikeklem May 29, 2003 3:35 AM (in response to mikeklem)Thanks for the info.
Yes, that is exactly how I am setting the TOL value.
If I really need to implement this feature I can do some sort of work around for now.
Thanks -
3. Re: Does JMS messages time out?
adrian.brock May 29, 2003 4:29 AM (in response to mikeklem)The correct way is:
TextMessage msg = session.createTextMessage();
publisher.publish(msg, DeliveryMode.PERSISTENT, 4, whatever);
or
publisher.setTimeToLive(whatever);
TextMessage msg = session.createTextMessage();
publisher.publish(msg);
Regards,
Adrian