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 0E963DBB2 for ; Tue, 19 Jun 2012 19:16:23 +0000 (UTC) Received: (qmail 77087 invoked by uid 500); 19 Jun 2012 19:10:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58288 invoked by uid 500); 19 Jun 2012 19:09:27 -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 67006 invoked by uid 99); 19 Jun 2012 17:08:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 17:08:42 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jgali@vsn.es does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 17:08:36 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Sh1uY-0003rv-BJ for users@activemq.apache.org; Tue, 19 Jun 2012 10:08:14 -0700 Date: Tue, 19 Jun 2012 10:08:14 -0700 (PDT) From: galix85 To: users@activemq.apache.org Message-ID: <1340125694343-4653380.post@n4.nabble.com> In-Reply-To: <1340039759799-4653355.post@n4.nabble.com> References: <1340039759799-4653355.post@n4.nabble.com> Subject: Re: RedeliveryPolicy not working on ActiveMQ 5.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Finally I find a solution of my problem. In camel.xml you have to setup deliveryPolicy a twice, I don't know why but for me works fine. The first of both is like a bean: And second is like a errorHandler in each route you want to delivery the message: application/xml PUT I did this way because "redeliveryDelay" of bean config didn't work well and then I did the handleError. The result is when message cannot delivery properly, Camel tries 2 times (maximumRedeliveries of bean configuration) * (4 times (maximumRedeliveries of errorHandler configuration) + 5000ms (redeliveryDelay of errorHandler configuration)). Complete Code: application/xml PUT I hope I can help someone with the same issue. Cheers. -- View this message in context: http://activemq.2283324.n4.nabble.com/RedeliveryPolicy-not-working-on-ActiveMQ-5-6-0-tp4653355p4653380.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.