Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 9246 invoked from network); 3 Jan 2009 10:46:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 10:46:26 -0000 Received: (qmail 9885 invoked by uid 500); 3 Jan 2009 10:46:26 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 9862 invoked by uid 500); 3 Jan 2009 10:46:26 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 9846 invoked by uid 99); 3 Jan 2009 10:46:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 02:46:26 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 10:46:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 64098234C48C for ; Sat, 3 Jan 2009 02:46:05 -0800 (PST) Message-ID: <2133028536.1230979565395.JavaMail.jira@brutus> Date: Sat, 3 Jan 2009 02:46:05 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1218) onException DSL should only be possible to set at top level (not within routes) In-Reply-To: <1951416570.1230977765400.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48435#action_48435 ] Claus Ibsen commented on CAMEL-1218: ------------------------------------ The Spring DSL is a bit trickier to get fixed as onException is a processortype itself to allow routing. And the XSD is autogenerated based on JAXB annotations. Jonathan is good at this, so I link it to the spring DSL ticket we have > onException DSL should only be possible to set at top level (not within routes) > ------------------------------------------------------------------------------- > > Key: CAMEL-1218 > URL: https://issues.apache.org/activemq/browse/CAMEL-1218 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 1.5.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 1.5.1, 2.0.0 > > > The ErrorHandlerBuilder is global per route context so the DSL should only allow you to set it at highest level to avoid confusing end users. > So this should *not* be allowed: > {code} > from("direct:start") > .onException(MyTechnicalException.class).handled(true).end() > .to("bean:doSomething"); > {code} > But you need to do it as: > {code} > onException(MyTechnicalException.class).handled(true); > from("direct:start") > .to("bean:doSomething"); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.