activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: JMSExpiration problem
Date Wed, 09 Aug 2006 08:12:59 GMT
On 8/8/06, jerb <jerb@bluenotenetworks.com> wrote:
>
> Hi,
> I'm investigating using the JMSExpiration property of the message header and
> I'm troubled by something I saw in the code. The code I looked at is 4.0.1.
> When a message is sent, the expiration is determined based on the time to
> live + System.currentTimeMillis() of the sending machine. The JMSTimestamp
> is also set to be System.currentTimeMillis() of the sending machine. When
> the broker does its own expiration calculation, it uses
> System.currentTimeMillis() of the broker machine. If the broker's machine
> and the sending machine have different system times, won't this adversely
> affect the expiration logic?

Yes - though this is a JMS API thing rather than our implementation.

For more details see

http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Message.html#getJMSExpiration()

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message