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: 2.9.0
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira