activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Gies <>
Subject Re: a question about TTL(time to live) ...?
Date Fri, 15 May 2009 06:00:01 GMT
HI there,

are you looking at JConsole to determine this ? --- I think you are  
running into
a particular behavior with ActiveMQ. The Time To Live is not regularly  
(there is no cleanup thread for ttled messages). To be more concrete  
the TTL is checked
checked when the message is dispatched to the consumer or when the  
is paged into memory from the secondary storage.
If you simply send one message without having consumers, the message  
will not
vanish from the broker. If you start up a consumer, you will notice  
the message disappearing
without reaching the consumer.

I hope that helps

On May 15, 2009, at 3:33 AM, angel7 wrote:

> I sended to queue a message after message setting TTL(time to live :  
> 30
> second)
> then i waited for 2 minute  ,
> but  the message didn't expire.
> why ?
> -- 
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

View raw message