activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgfarme <>
Subject Inconsistent TTL behavior on Topics
Date Thu, 27 Jan 2011 01:24:37 GMT

I am seeing very inconsistent behavior when setting the TTL on topic
messages. Queues seem to work fine. 

I start the broker (both version 5.3 and 5.4 exhibit the same issue), and
then use the web admin console to create a topic, and send a message to it.
I notice that I get the best behavior when I set the TTL to 1 (I believe
this field is milliseconds) - The majority of the time, the message goes to
the DLQ. However, for any other value, it's hit or miss. Sometimes it goes
to the DLQ, others it doesn't (you can see the DLQ count not increasing, as
the Messaages enqueued count increases)....

I first noticed this when I set the individualDLQstrategy for topics and
queues to send messages (programmatically) to their own DLQ topic - I
noticed I wasn't seeing ANY TOPIC messages timing out. I then noticed the
same behavior when done via the web admin console - and it's easier to

I also tried persistent and non-persistent messages.

So, am I fundamentally misunderstanding something, or is there a bug in the
expiring of topic based messages ?



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

View raw message