You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Eduardo Raupp (JIRA)" <ji...@apache.org> on 2016/06/26 15:25:33 UTC

[jira] [Commented] (CAMEL-2654) Delay and Throttle EIP - Should not have child outputs, which otherwise causes people to have to add .end() in Java DSL

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

Eduardo Raupp commented on CAMEL-2654:
--------------------------------------

I am not sure if I understood what is the problem.. but if you create some external route(with "direct") instead of the internal instruction(end())? Externalize could be the solution. No?



> Delay and Throttle EIP - Should not have child outputs, which otherwise causes people to have to add .end() in Java DSL
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2654
>                 URL: https://issues.apache.org/jira/browse/CAMEL-2654
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 3.0.0
>
>
> For example when used in onException it gets a bit confusing as you must have 2 end to end it
> {code:java}
>                 from("direct:start")
>                     .onException(Exception.class)
>                         .maximumRedeliveries(2)
>                         .backOffMultiplier(1.5)
>                         .handled(true)
>                         .delay(1000)
>                             .log("Halting for some time")
>                             .to("mock:halt")
>                         .end()
>                     .end()
>                     .to("mock:result");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)