From users-return-15603-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Aug 26 07:42:12 2008 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 84174 invoked from network); 26 Aug 2008 07:42:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Aug 2008 07:42:12 -0000 Received: (qmail 6788 invoked by uid 500); 26 Aug 2008 07:42:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6776 invoked by uid 500); 26 Aug 2008 07:42:09 -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 6765 invoked by uid 99); 26 Aug 2008 07:42:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2008 00:42:09 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2008 07:41:11 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KXtBN-0006aq-5i for users@activemq.apache.org; Tue, 26 Aug 2008 00:41:41 -0700 Message-ID: <19157017.post@talk.nabble.com> Date: Tue, 26 Aug 2008 00:41:41 -0700 (PDT) From: Carlos Quiroz To: users@activemq.apache.org Subject: Expired messages never disappear MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: carlos.quiroz-castro@nokia.com X-Virus-Checked: Checked by ClamAV on apache.org Hi I've been fighting with this issue for a few days but so far I can't really understand well what is happening. In my scenario we have clients that create durable subscriptions to topics. To those subscriptions messages are sent every now and then. The messages are not persistent and have an expiration of about 1 day. When clients connect before the expiration they get those messages or if they have expired clients don't get those messages as expected. The downside is that expired messages apparently never leave the system. They are not sent to the client but instead they remain in the Kaha Store and every time a client connects ActiveMQ goes through all the messages in the subscription for processing. If I don't use a DLQ the expired messages are skipped but remain so that next time a client connect they reappear. I've tried to send them to the DLQ and even process them but still next time ActiveMQ starts, it restores them from the store and starts sending them again to the DLQ, I think in this scenario messages are really replayed into the DLQ. So I'm looking for some advice. Are expired messages ever prunned? If I don't want to process expired messages so I don't use a DLQ shouldn't they just disappear. If I do send them to the DLQ and process them, should they disappear then? PS- I'm using AMQ 5.1 and the default persistent storage. Regards Carlos Quiroz -- View this message in context: http://www.nabble.com/Expired-messages-never-disappear-tp19157017p19157017.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.