Hi,
ok it works with :
recipientList(simple("file:/\\xxxxxx/echange/MassPayment/SAVE/?fileName=${header.newName}")).stopOnException()
the newName value is generated in "checkData" bean
(headers.put("newName", h7310B.getP_NEW_NAME());
But i have a question if i try, in my route :
.recipientList(simple("{{file.endpoint.1}}?fileName=${header.newName}")).stopOnException()
(I use a properties file,
file.endpoint.1=file:/\\xxxxxx/echange/MassPayment/SAVE/)
i get the message :
Could not resolve placeholder 'header.newName' in string value
"file:/\xxxxxx/echange/MassPayment/SAVE/?fileName=${in.header.newName}"
Is it possible to use a properties file ?
Thank you in advance
--
View this message in context:
http://camel.465427.n5.nabble.com/rename-a-file-tp5743924p5744035.html
Sent from the Camel - Users mailing list archive at Nabble.com.