apache camel - How to attach different paths in FROM Uri - Spring XML -
im having trouble trying attach different paths uri in xml configuration file, in java can done this:
string[] uris = new string[]{"file:source/path1","file:source/path2"}; (uris).to("file:dest/path")
the resulting route move files source paths destination path, how can achieve using spring xml? have been trying different aproachs , can't find have of them working
<route id="bar"> <from uri= "file:source/path1,file:source/path2" /> <to uri="file:dest/path"/> </route>
fabian
you can have multiple from
:
<route id="bar"> <from uri="file:source/path1"/> <from uri="file:source/path2"/> <to uri="file:dest/path"/> </route>
this create 1 routedefinition, 2 route instances
Comments
Post a Comment