Unfortunately not in the current release - though using a Queue browser will have the same result - in forcing expired messages to be removed

On 15 May 2009, at 08:55, angel7 wrote:


thank you for your kind

So,
Isn't there how to remove automatically the message in queue after ttl ,
until a consumer register ?



Andreas Gies wrote:

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
checked
(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
message
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
Andreas

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:
http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23551953.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.





--
View this message in context: 
http://www.nabble.com/a-question-about-TTL%28time-to-live%29-...--tp23551953p23555120.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Reply via email to