camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alfred Hiebl (JIRA)" <>
Subject [jira] [Created] (CAMEL-3994) Java DSL - New means to explicitly end try/catch blocks
Date Thu, 19 May 2011 06:44:49 GMT
Java DSL - New means to explicitly end try/catch blocks

                 Key: CAMEL-3994
             Project: Camel
          Issue Type: Wish
          Components: camel-core
    Affects Versions: 2.6.0
            Reporter: Alfred Hiebl

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:

  public void configure() throws Exception {
                .endDoTry()  // would need some way like this to get back to the TryDefinition

I tested this by adding endDoTry() to the ProcessorDefinition, and it works just fine.

  public TryDefinition endDoTry() {
       return (TryDefinition) this;

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: 

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message