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 2014/07/15 16:01:34 UTC

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

     [ https://issues.apache.org/jira/browse/CAMEL-4564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider closed CAMEL-4564.
--------------------------------------

    Resolution: Won't Fix

> 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.2#6252)