activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spiiff <matthias.ba...@siemens.com>
Subject message expiration
Date Mon, 29 Oct 2007 18:31:17 GMT

Hi,
one question about the message expiration in combination with topics.
I know how to configure the time-to-live.

A message first resides inside the journal. After the checkpointing(how to
configure checkpointing??), it is persisted in a database (if JDBC is
configured).

If the time-to-live is specified as zero the message does not expire.   
If the message does not expire, will it never be dropped out of the
database? 

How are the rules?

If you are using durable subscription and set the "time to live" to maybe 10
seconds and the consumer is active after 20 seconds again, then the consumer
will not receive the message, because it was dropped already.. ( I tried
this in my UnitTest)


We thought a message is dropped out of the activemq persistence if it is
received by the consumer(s). We have to make sure the consumers really
receive the messages. But if we set time-to-live to zero, then our database
will explode.

Regards,
Matthias
-- 
View this message in context: http://www.nabble.com/message-expiration-tf4713621s2354.html#a13473823
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message