Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 525795BEA for ; Thu, 12 May 2011 08:46:46 +0000 (UTC) Received: (qmail 77411 invoked by uid 500); 12 May 2011 08:46:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 77340 invoked by uid 500); 12 May 2011 08:46:45 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 77324 invoked by uid 99); 12 May 2011 08:46:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 08:46:45 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 08:46:39 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QKRXG-0002XS-Cx for users@camel.apache.org; Thu, 12 May 2011 01:46:18 -0700 Date: Thu, 12 May 2011 01:46:18 -0700 (PDT) From: Jens To: users@camel.apache.org Message-ID: <1305189978389-4389656.post@n5.nabble.com> In-Reply-To: <1305133015093-4387905.post@n5.nabble.com> References: <1304950135908-4381958.post@n5.nabble.com> <1304962225568-4382450.post@n5.nabble.com> <1305097401234-4386631.post@n5.nabble.com> <1305121632476-4387421.post@n5.nabble.com> <1305127066522-4387637.post@n5.nabble.com> <1305133015093-4387905.post@n5.nabble.com> Subject: Re: Does onException not support multiple statements? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Jens, I think you can use this interceptor to convert faults to > exceptions...see > https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/FaultRouteTest.java > this unit test > > basically, just add this to your context... > > getContext().addInterceptStrategy(new HandleFault()); Thanks for that. Unfortunately that doesn't seem to help much. In fact, I don't see the interceptor firing at all. Is there anything else that needs to be done to enable an InterceptorStrategy? -- View this message in context: http://camel.465427.n5.nabble.com/Does-onException-not-support-multiple-statements-tp4381958p4389656.html Sent from the Camel - Users mailing list archive at Nabble.com.