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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -