Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E49CD17903 for ; Fri, 17 Oct 2014 19:10:49 +0000 (UTC) Received: (qmail 23198 invoked by uid 500); 17 Oct 2014 19:10:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23150 invoked by uid 500); 17 Oct 2014 19:10:49 -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 23138 invoked by uid 99); 17 Oct 2014 19:10:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 19:10:48 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,URI_TRY_3LD,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tbain98@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 19:10:45 +0000 Received: by mail-qc0-f182.google.com with SMTP id i17so1113429qcy.13 for ; Fri, 17 Oct 2014 12:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=KDRD8t5mkurwwSUyu9FEbm+tsli0L9nvf+FS3HRluP0=; b=EYetAOECsEAWzC6IgIFF8xJE8JV775ZnpqlTNvy4Vvltlpa3CRZ/Dbcu4HuwqZqDG0 SqHgN/KJs9HTDe2VmSjcWzJT7uJcZbsoSWWqFfXFUoxgg/Meqr2FmRJ05e4s5i+2XOaM Y+3GKJjfFzP6ucAD3c9ndf7YV6vPKAGGXNqKXPJid89r2yKhQFngcDqgj5e5XxVKLeOA XO1xnIRX1Z1P1viYLU1Vpq3ju1XhbSslB96FCJdrZj0PFLWOPtMvaQYLqFcsyjoWF4+9 T8htC4Fkra0yB3BvSS/O6KlXSPDqCHKXHwxzQkq3ppHSNF/6NZcRBRpnnSLXOMuiiUR9 LuSQ== X-Received: by 10.224.45.65 with SMTP id d1mr14869486qaf.43.1413573024105; Fri, 17 Oct 2014 12:10:24 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.229.158.17 with HTTP; Fri, 17 Oct 2014 12:10:03 -0700 (PDT) In-Reply-To: <1413566238746-4686510.post@n4.nabble.com> References: <1413566238746-4686510.post@n4.nabble.com> From: Tim Bain Date: Fri, 17 Oct 2014 13:10:03 -0600 X-Google-Sender-Auth: Gw1LdVoagRiNmPGQknYCFuNkwf4 Message-ID: Subject: Re: How do I configure a automatic expiration for DLQ To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a11c29a4cf74c6b0505a31d8a X-Virus-Checked: Checked by ClamAV on apache.org --001a11c29a4cf74c6b0505a31d8a Content-Type: text/plain; charset=UTF-8 2. That plugin will cause messages to be discarded immediately instead of going to the DLQ. There's 5-day timeout like you're looking for, they just go straight into the bit bucket. On Fri, Oct 17, 2014 at 11:17 AM, gchakra wrote: > 1.For the dead letter queue ActiveMQ.DLQ, I would like to configure a > policy > whereby messages in DLQ get deleted after they have resided in DLQ for 5 > days. > I couldnt see how to do it in the documentation. > My current activemq.xml configuration file is below...how do I modify it > for > autoexpiring my DLQ messages after 5 days... > > > xmlns:amq="http://activemq.apache.org/schema/core" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > > > file:${activemq.base}/conf/credentials.properties > > > brokerName="localhost" dataDirectory="${activemq.base}/data" > destroyApplicationContextOnStop="true"> > > > > producerFlowControl="false" memoryLimit="1mb" > useCache="false"> > > > > > producerFlowControl="false" memoryLimit="1mb" > useCache="false"> > > > > > > > > > > > > > ignoreMissingJournalfiles="true" checkForCorruptJournalFiles="true" > checksumJournalFiles="true" journalMaxFileLength="64mb" /> > > > > > > > > > > 2. What is the impact of adding the following plugin to the broker in > activemq.xml configuration XML > brokerName="localhost" dataDirectory="$ > {activemq.base}/data" destroyApplicationContextOnStop="true"> > > dropTemporaryQueues="true" /> > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-do-I-configure-a-automatic-expiration-for-DLQ-tp4686510.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a11c29a4cf74c6b0505a31d8a--