Thank you very much for your fast response. I changed my code but I still
have the problem that time-to-live has no effect.

It here a unittest that test nearly the same situation. Then I could find
out if this is a problem of my program or bug in ActiveMQ.

Regards Philipp


rajdavies wrote:
> 
> You don't set the expiration directly on the message - but set the  
> time-to-live on the Producer - i.e.  
> javax.jms.MessageProducer.setTimeToLive(long timeToLive)
> 

-- 
View this message in context: 
http://www.nabble.com/problem-set-the-expiration-time-for-durable-topic-messages-tf4025141s2354.html#a11459193
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to