Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E3BD4537 for ; Mon, 6 Jun 2011 11:08:20 +0000 (UTC) Received: (qmail 91595 invoked by uid 500); 6 Jun 2011 11:08:20 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 91553 invoked by uid 500); 6 Jun 2011 11:08:20 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 91479 invoked by uid 99); 6 Jun 2011 11:08:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 11:08:20 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 11:08:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1317336115 for ; Mon, 6 Jun 2011 11:07:59 +0000 (UTC) Date: Mon, 6 Jun 2011 11:07:59 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <116527461.134.1307358479074.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <658211421.25781.1305787489665.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-3994) Java DSL - New means to explicitly end try/catch blocks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-3994: ------------------------------- Fix Version/s: 2.9.0 2.8.0 Issue Type: Improvement (was: Wish) > Java DSL - New means to explicitly end try/catch blocks > ------------------------------------------------------- > > Key: CAMEL-3994 > URL: https://issues.apache.org/jira/browse/CAMEL-3994 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.6.0 > Reporter: Alfred Hiebl > Assignee: Claus Ibsen > Fix For: 2.8.0, 2.9.0 > > > We are facing a problem with split() in combination with doTry/doCatch(). > Could you add a method "endDoTry()" to the ProcessorDefinition? My use case is this: > {code} > @Override > public void configure() throws Exception { > from("timer://myTimer?period=10000) > .log("begin") > .setBody(constant("x,y,z")) > .doTry() > .log("processing") > .split(body()) > .log("split") > .end() > .endDoTry() // would need some way like this to get back to the TryDefinition > .doCatch(Exception.class) > .log("Exception") > .end(); > } > {code} > I tested this by adding endDoTry() to the ProcessorDefinition, and it works just fine. > {code} > public TryDefinition endDoTry() { > return (TryDefinition) this; > } > {code} > An endDoCatch in the TryDefinition would be great too. Is it possible that these endXXX() methods get added to 2.6.0, not just 2.7.0 or trunk? > See also: http://camel.465427.n5.nabble.com/Route-with-choice-and-split-td4375184.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira