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 8B394807A for ; Mon, 8 Aug 2011 13:47:18 +0000 (UTC) Received: (qmail 32995 invoked by uid 500); 8 Aug 2011 13:47:18 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 32715 invoked by uid 500); 8 Aug 2011 13:47:17 -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 32703 invoked by uid 99); 8 Aug 2011 13:47:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 13:47:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wingtung.leung@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 13:47:09 +0000 Received: by wwi18 with SMTP id 18so3323438wwi.20 for ; Mon, 08 Aug 2011 06:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=aXP8mKapra+mKKzQwR/bF7pY0zWJDLb3HWNMNAxdqtU=; b=AfrbuaWsWtpXqKgot0p0KWu7sCNiWrqcQqFjmzu/Rcs6daYOvJlaGBSfF923YnoVXr bsojWLwhij1R/gzq1+Mcncbuj+8i4+q8T3oW3KDZ5127sQO26dIv2z/cg1GqLrO4S/5e bE1+PWFqwWYgtJYPLOuvFwUn90hx0ZkKHzbpo= MIME-Version: 1.0 Received: by 10.216.229.166 with SMTP id h38mr4586158weq.48.1312811208947; Mon, 08 Aug 2011 06:46:48 -0700 (PDT) Received: by 10.216.35.80 with HTTP; Mon, 8 Aug 2011 06:46:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Aug 2011 15:46:48 +0200 Message-ID: Subject: Re: Enter multiple onException clauses in a single route? From: wing-tung Leung To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Aug 8, 2011 at 3:27 PM, Claus Ibsen wrote: > On Mon, Aug 8, 2011 at 3:13 PM, wing-tung Leung > wrote: >> I have a route where I perform some XSD validation first, and after >> that a HTTP download. The XSD validation is "optional", meaning that >> failure is simply logged but should not block the rest of the flow, >> while HTTP download exceptions should abort. [snip] >> Initially, I assumed that after the "silent" handling of >> ValidationException, the second exception (HTTP) =A0handler would kick >> in, but it's never called. Is this because only 1 "onException" >> handler can be called per route? [snip] > What version of Camel are you using? Well, the not so new version 2.6.0, because we are currently still stuck to JDK 1.5. :-( I'm willing to try with a more recent version, but this involves a big bunch of local changes, and prefer to avoid it if not necessary ..