Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 51803 invoked from network); 7 Jul 2008 14:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jul 2008 14:03:31 -0000 Received: (qmail 73105 invoked by uid 500); 7 Jul 2008 14:03:23 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 73084 invoked by uid 500); 7 Jul 2008 14:03:23 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 73060 invoked by uid 99); 7 Jul 2008 14:03:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2008 07:03:22 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.178] (HELO exsmtp02.exserver.dk) (195.69.129.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2008 14:02:29 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Mon, 7 Jul 2008 16:00:44 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: spring DeadLetterChannel redelivery config Date: Mon, 7 Jul 2008 16:01:09 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204BD8040@EXVS04.exserver.dk> In-Reply-To: <18314952.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: spring DeadLetterChannel redelivery config Thread-Index: AcjgJ1iBlz6Cg7nfTDSP8rcfQ88+3gAElQ3Q From: "Claus Ibsen" To: X-OriginalArrivalTime: 07 Jul 2008 14:00:44.0372 (UTC) FILETIME=[D9501140:01C8E039] X-Virus-Checked: Checked by ClamAV on apache.org Hi Can you try running it outside ActiveMQ eg from camel:run. To see that = it works. Then we can identify the problem with ActiveMQ later. I have added a unit test to camel-spring that works with your = configuration. It gets the DeadLetterChannel that is configured as a spring bean and = uses the redelivery prorperties as well. Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: vguna [mailto:grave@gmx.de]=20 Sent: 7. juli 2008 13:49 To: camel-user@activemq.apache.org Subject: RE: spring DeadLetterChannel redelivery config Hi again. I recently encountered that the redeliveryPolicy still doesn't work as expected. Basically it does the redelivery - but with default settings = as it seems. Tried this configuration in activemq.xml with camel 1.4 snapshot: Redelivery takes place in 30 seconds with a retry count of 5 instead of = the values configured. This might be because the errorHandlerRef on route = isn't evaluated at all. If I change this to foobar, it doesn't complain about = it on startup. So what I'm doing wrong? Regards, Veit Claus Ibsen wrote: >=20 > Hi >=20 > Thanks a lot for sharing this. Handy for others as well. > There could be an issue with the initial delay vs. repated delay. >=20 > Do you mind creating a JIRA ticket for this - then its not forgotten. > Would be nice with a special delay for the first redelivery and then > another setting for the repeated delay.=20 >=20 >=20 > Med venlig hilsen > =20 > Claus Ibsen > ...................................... > Silverbullet > Skovsg=E5rdsv=E6nget 21 > 8362 H=F8rning > Tlf. +45 2962 7576 > Web: www.silverbullet.dk >=20 > -----Original Message----- > From: vguna [mailto:grave@gmx.de]=20 > Sent: 7. juli 2008 11:17 > To: camel-user@activemq.apache.org > Subject: Re: spring DeadLetterChannel redelivery config >=20 >=20 > Hi James. >=20 > Thanks for the reply. It seems to work now. For all, who asking = themselves > how a xml configuration for this will look like, here's an example: >=20 > xmlns=3D"http://activemq.apache.org/camel/schema/spring"> >=20 > > > >=20 > >=20 > class=3D"org.apache.camel.builder.DeadLetterChannelBuilder"> > > >=20 > class=3D"org.apache.camel.processor.RedeliveryPolicy"> > > > > >=20 >=20 > Still one problem left. When an error occurs, a redelivery is executed > immediately - without the specified delay. After > that, the redeliveryDelay is used correctly.Is this by design? Would = be > nice, if one could configure a "redeliveryDelay" and a > "initialRedliveryDelay". Or just simply use the delay on the first > redelivery attempt, too. >=20 > Regards, > Veit >=20 >=20 >=20 >=20 >=20 > James.Strachan wrote: >>=20 >> I've recently fixed this... >>=20 >> https://issues.apache.org/activemq/browse/CAMEL-662 >>=20 >> so you can now specify an errorHandlerRef on a a >> or element to refer to a spring bean which could = be >> a DeadLetterChannelBuilder or a TransactionalErrorHandlerBuilder etc. >>=20 >> i.e. you can define the errror handler as a normal spring bean now >>=20 >> 2008/3/7 Marc Giger : >>> Hi, >>> >>> I'm trying to configure the DeadLetterChannel with spring. >>> Unfortunately without success. No matter where I declare the >>> , camel tries to redeliver the message 5 times in the = case >>> of an exception. >>> >>> How must the following configuration be modified so that camel just >>> tries to deliver once? >>> >>> >> xmlns=3D"http://activemq.apache.org/camel/schema/spring"> >>> >>> >>> >>> >>> 0 >>> >>> >>> >>> >>> >>> 0 >>> >>> >>> >>> >>> >>> >> method=3D"matches"/> >> uri=3D"cxf:bean:serviceEndpoint?dataFormat=3DMESSAGE"/> >>> >>> >> uri=3D"cxf:bean:localEndpoint"/> >>> >>> >>> >>> >>> Thanks a lot! >>> >>> Cheers, >>> >>> Marc >>> >>=20 >>=20 >>=20 >> --=20 >> James >> ------- >> http://macstrac.blogspot.com/ >>=20 >> Open Source Integration >> http://open.iona.com >>=20 >>=20 >=20 > --=20 > View this message in context: > = http://www.nabble.com/spring-DeadLetterChannel-redelivery-config-tp159065= 61s22882p18312842.html > Sent from the Camel - Users mailing list archive at Nabble.com. >=20 >=20 >=20 --=20 View this message in context: = http://www.nabble.com/spring-DeadLetterChannel-redelivery-config-tp159065= 61s22882p18314952.html Sent from the Camel - Users mailing list archive at Nabble.com.