activemq-users mailing list archives

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

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

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

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.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message