Property placeholder support for multiple inputs to a route
------------------------------------------------------------
Key: CAMEL-3214
URL: https://issues.apache.org/activemq/browse/CAMEL-3214
Project: Apache Camel
Issue Type: New Feature
Components: camel-core
Affects Versions: 2.4.0
Reporter: Claus Ibsen
Priority: Minor
Fix For: 3.0.0
If you have a route and you have externalized the incoming endpoint uri using
property placeholder
{code}
from("{{inputA}}").to("xxx");
{code}
Then you may want to support that {{inputA}} can contain 1..n endpoints.
{code}
inputA=direct:start
inputA=activemq:queue:foo,cxf:bean:foo
{code}
The placeholder can contain multiple entries separated by a token such as comma.
All we essentially need is to use the ObjectHelper.createIterator on the value
and then add inputs to the route.
It should trim the values so you can have space between the comma, so its
easier to read.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.