You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2013/10/22 09:41:45 UTC

[jira] [Commented] (CAMEL-4564) Make dynamicRouter conformant to the pattern

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

Christian Schneider commented on CAMEL-4564:
--------------------------------------------

How about leaving the current DSL element as is and create a new one like .routeTo(Expr) which only sends to one endpoint?

> Make dynamicRouter conformant to the pattern
> --------------------------------------------
>
>                 Key: CAMEL-4564
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4564
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.8.1
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: Future
>
>
> Currently the dynamic router loops over evaluating the expression and sending to the endpoint till the expression returns null.
> This is not really what the EIP dynamic router says. The pattern says "the Dynamic Router evaluates all rules and routes the message to the recipient whose rules are fulfilled".
> So for me this sounds like we should only send to one endpoint.
> So my proposal is to change the dynamicRouter so it simply evaluates the expression as a uri and routes to this destination if it is not null else it simply passes the exchange to the next processor.
> As some people may use the loop functionality I propose to add a new DSL element that mimics the current behaviour. A first proposal for a name is .loopTo(Expression) . So this means loop and send to the endpoint specified by the expression. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)