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: Difference setJMSExpiration setTimeToLive
Date Wed, 17 Sep 2008 08:53:47 GMT
Agreed - its always worth checking the javadoc for methods on the
Message interface as it usually describes which properties are set by
a provider and which are not.
http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Message.html#setJMSExpiration(long)

BTW its kinda odd that the JMS API would include methods that only the
provider calls; as there's no need to make them part of the public
Message API - they could have just been on the providers
implementation class :)


2008/9/16 Rob Davies <rajdavies@gmail.com>:
> ooh - this is a problem of the JMS api - in general - JMS properties on a
> message are only set by the JMS provider - so if you set the JMSExpiration -
> it will be ignored - and overwritten when the message is sent  - always use
> the producer level!
>
> cheers,
>
> Rob
>
> Rob Davies
> http://rajdavies.blogspot.com/
>
>
> On 16 Sep 2008, at 19:12, greenapple wrote:
>
>>
>> This is a general JMS question:
>>
>> what is the setJMSExpiration on the message level and setTimeToLive on the
>> sender (producer) level?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Difference-setJMSExpiration-setTimeToLive-tp19517510p19517510.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message