Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 50371 invoked from network); 6 Aug 2010 08:17:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 08:17:12 -0000 Received: (qmail 64027 invoked by uid 500); 6 Aug 2010 08:17:12 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 63813 invoked by uid 500); 6 Aug 2010 08:17:10 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 63805 invoked by uid 99); 6 Aug 2010 08:17:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 08:17:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 08:17:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o768GmtK003032 for ; Fri, 6 Aug 2010 08:16:48 GMT Message-ID: <11310301.221281082608307.JavaMail.jira@thor> Date: Fri, 6 Aug 2010 04:16:48 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-1847) Redelivery on a failure doesn't respect the initialRedeliveryDelay on the first attempt. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully updated AMQ-1847: ---------------------------- Assignee: Gary Tully Fix Version/s: 5.4.0 (was: 5.3.0) Fix implemented in r982903 initialRedeliveryDelay is not respected, set it to 0 to have immediate redelivery. Additional deliveryDelay (default = 1000) which controls subsequent redelivery delay if initialRedeliveryDelay==0 > Redelivery on a failure doesn't respect the initialRedeliveryDelay on the first attempt. > ---------------------------------------------------------------------------------------- > > Key: AMQ-1847 > URL: https://issues.apache.org/activemq/browse/AMQ-1847 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.1.0 > Environment: Linux, ActiveMQ 5.1, Spring 2.5.x with transacted DefaultMessageListenerContainer > Reporter: Veit Guna > Assignee: Gary Tully > Fix For: 5.4.0 > > > Hi. > I'm using ActiveMQ 5.1 together with Spring's DefaultMessageListenerContainer to enable MDPs. I'm using the redeliveryPolicy to enable redelivery on failures during consumption of a message. ActiveMQ configuration looks like this: > > > > > > > > > > > > > > > Now if a failure occurs, the configured delay isn't used on the first redelivery attempt. Instead redelivery takes place immediately after the failure occured. This sounds odd to me, since the property is even called initialRedeliveryDelay :). I know that maybe this was caused due to the following issue: > https://issues.apache.org/activemq/browse/AMQ-1032 > In my opinion immediately redelivery isn't very useful in most cases. If a failure occurs, it won't be fixed some ms later :). So my suggestion is (in respect to AMQ-1032) to have two options: > initialRedeliveryDelay > redeliveryDelay > So both configurations would be possible. For AMQ-1032 just configure initialRedeliveryDelay to 0. Otherwise just take the redeliveryDelay as initialRedeliveryDelay to get what I want :). > Does this make sense? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.