From users-return-7739-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Mar 05 15:28:27 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 54572 invoked from network); 5 Mar 2007 15:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 15:28:26 -0000 Received: (qmail 69589 invoked by uid 500); 5 Mar 2007 15:28:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 69574 invoked by uid 500); 5 Mar 2007 15:28:34 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 69565 invoked by uid 99); 5 Mar 2007 15:28:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 07:28:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 07:28:21 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HOF6X-0006NX-Cy for users@activemq.apache.org; Mon, 05 Mar 2007 07:28:01 -0800 Message-ID: <9313553.post@talk.nabble.com> Date: Mon, 5 Mar 2007 07:28:01 -0800 (PST) From: teryz To: users@activemq.apache.org Subject: Durable Subscription and Message Expiration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: teryzplace@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am using a topic with durable subscriptions. I use apache-activemq-4.1.0-incubator. I want to limit the life of the messages my producers post in this topic. It seems to me that myProducer.setTimeToLive(10000) 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 case. 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 : https://issues.apache.org/activemq/browse/AMQ-936 but it is said that the problem is fixed in v4 and it is related with queues not topic. 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, Terry. -- View this message in context: http://www.nabble.com/Durable-Subscription-and-Message-Expiration-tf3349488s2354.html#a9313553 Sent from the ActiveMQ - User mailing list archive at Nabble.com.