Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 48318 invoked from network); 2 Dec 2008 16:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Dec 2008 16:36:49 -0000 Received: (qmail 39340 invoked by uid 500); 2 Dec 2008 16:37:01 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 39200 invoked by uid 500); 2 Dec 2008 16:37:01 -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 39180 invoked by uid 99); 2 Dec 2008 16:37:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 08:37:01 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.lists@imap.cc designates 66.111.4.25 as permitted sender) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2008 16:35:33 +0000 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id A35B71C9600 for ; Tue, 2 Dec 2008 11:36:20 -0500 (EST) Received: from web7.messagingengine.com ([10.202.2.216]) by compute2.internal (MEProxy); Tue, 02 Dec 2008 11:36:20 -0500 Received: by web7.messagingengine.com (Postfix, from userid 99) id 8804FC59B7; Tue, 2 Dec 2008 11:36:20 -0500 (EST) Message-Id: <1228235780.18736.1287844983@webmail.messagingengine.com> X-Sasl-Enc: oagZYlZU643WXTtM3UtvDB9mBBnFRJAeNXbko2mXLoGA 1228235780 From: "Martin Gilday" To: camel-user@activemq.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1227711574.18377.1286885941@webmail.messagingengine.com> Subject: Re: onException for a particular route In-Reply-To: <1227711574.18377.1286885941@webmail.messagingengine.com> Date: Tue, 02 Dec 2008 16:36:20 +0000 X-Virus-Checked: Checked by ClamAV on apache.org I've attempted what Claus suggested on putting onException in a route from("somewhere").onException(IllegalArgumentException.class).maximumRedeliveries(0).to("someplace") Camel allows this to start up but it appears to have no affect and routes simply time out. Can anyone comment on whether this is valid? http://activemq.apache.org/camel/exception-clause.html makes no mention of if this should be permitted on not. Thanks, Martin. ----- Original message ----- From: "Martin Gilday" To: camel-user@activemq.apache.org Date: Wed, 26 Nov 2008 14:59:34 +0000 Subject: onException for a particular route Reading through the docs there is an explanation of how to use onException to set error handling for the global context. There is also instructions on how to set up an errorHandler for a particular route. Is it possible to set up onException handlers that only apply to an individual or subset of routes? deadLetterChannelBuilder has method named exceptionPolicyStrategy which may be what I am after. Could someone point me in the direction of a code snippet of how to use this? Thanks, Martin.