Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 67856 invoked from network); 12 Jul 2008 10:05:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2008 10:05:55 -0000 Received: (qmail 24690 invoked by uid 500); 12 Jul 2008 10:05:55 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 24676 invoked by uid 500); 12 Jul 2008 10:05:55 -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 24665 invoked by uid 99); 12 Jul 2008 10:05:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jul 2008 03:05:55 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FRT_STRONG2,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; Sat, 12 Jul 2008 10:05:00 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Sat, 12 Jul 2008 12:03:35 +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: Camel Exception Handling Date: Sat, 12 Jul 2008 12:03:56 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204BD85D7@EXVS04.exserver.dk> In-Reply-To: <18417527.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Camel Exception Handling Thread-Index: Acjj/g+F3lZsEh63Qgup1OYWfNszOQAB2C8w From: "Claus Ibsen" To: X-OriginalArrivalTime: 12 Jul 2008 10:03:35.0622 (UTC) FILETIME=[8C61DE60:01C8E406] X-Virus-Checked: Checked by ClamAV on apache.org Hi I do think the redelivery it's the responsibility of the backing system. = And in your case it's ActiveMQ 5.1. If you were on WebSphereMQ then you = had to configure WebSphere how it should handle redeliveries. So you should configure ActiveMQ how it should handle redeliverings, = delays, its error queue etc. In fact it also has a redeliveryPolicy tag=20 The stuff in Camel was added as a baseline for further improvements. = What Camel only can do is to add some additional delays, if for instance = configuring the backing system is very hard. Then Camel at least will be = able to do delays.=20 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: michaellear [mailto:mikelear@condotta.co.uk]=20 Sent: 12. juli 2008 11:04 To: camel-user@activemq.apache.org Subject: Camel Exception Handling Hi=20 I'm still struging with the transaction hadnling in Camel. No matter = what I try and can't seem to get any different behaviour than a message = failing retrying the default amount of times and then been forwared onto the activeMQ.DLQ. I've tried most different examples and sugestions from the forums but it I can't seem to change the behaviour. Below is my XML and = java code to show the configuration com.SpringTest Here is my java code for the RouteBuilder package configure() errorHandler(loggingErrorHandler());=20 exception(Exception.class).to("jms:queue:TestQueue.exception"); =20 from("jms:queue:TestQueue") .policy( (SpringTransactionPolicy)ctx.getBean("required")) .process( (Processor)ctx.getBean("myProcessor")); and here is the java code for MyProcessor which just throws and = exception public class MyProcessor implements Processor { public void process(Exchange exchange) throws Exception { throw new Exception("Forced Exception"); } } As I say no matter what I try and I can't seem to get a different = behaviour I can see by the log file that if I change the errorhandler I don't get = the call to the DeadLetter classes but it still appears on there. But I can never get any exception to appear on the exception queue infact the = queue is never created.=20 I'm using ActiveMQ 5.1 and the latest SNAPSHOT of Camel. Any help would = be greatly appreaciated I've been trying different combinations and looking = at the code for this for the last two days with no success. Thanks Mike --=20 View this message in context: = http://www.nabble.com/Camel-Exception-Handling-tp18417527s22882p18417527.= html Sent from the Camel - Users mailing list archive at Nabble.com.