[ 
https://issues.apache.org/activemq/browse/CAMEL-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52222#action_52222
 ] 

Claus Ibsen commented on CAMEL-1697:
------------------------------------

I have decided to keep the old behavior. It does work best this way. So in Java 
DSL you have to use end() more consistently. Think of them as } in Java code.

So the route above should be:
{code}
from("direct:start")
                    .doTry()
                        .process(new ProcessorFail())
                        .to("mock:result")
                        .doCatch(Exception.class)
                           .process(new ProcessorHandle())
                        .doFinally()
                          .to("mock:finally")
                        .end() // to end finally
                     .end() // to end try
                    .to("mock:last");
{code}

> Java DSL for multicast, split, aggregate does not use block explicit
> --------------------------------------------------------------------
>
>                 Key: CAMEL-1697
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1697
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> When using one of the EIP that uses a nested route for sub processing, 
> typically EIPs that does some sort of aggregation such as
> - multicast (for aggregating a response)
> - split
> - aggregate
> And maybe a few others
> They should use pushBlock so the {{end()}} DSL to indicate end of sub route 
> works correctly in Java DSL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to