activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From teryz <>
Subject Durable Subscription and Message Expiration
Date Mon, 05 Mar 2007 15:28:01 GMT


I am using a topic with durable subscriptions. I use

I want to limit the life of the messages my producers post in this topic.

It seems to me that 


was the way to do it (here for ten seconds), but after any time (greater
than 10secs) without any consumer reading from the queue, when aunching a
consumer i expect it not to find any message in the topic but it is not the

When browsing the topic with JConsole i found that the JMSExpiration for
those messages is set to a value like 1173107075408 that seems related with
the JMSMessageID XXX-1173107063209-XXX and the JMSExpiration of the previous
message (in this example = 1173107073695)

I also tried to set time to live in the send method for my producer with the
same result as described above.

I saw the Jira : but it is
said that the problem is fixed in v4 and it is related with queues not

So my question is : is this a bug or is this an expected behaviour for
durable subscription or am i missing something here?

Thanx for your help guys,

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

View raw message