Try with

$simple{

instead of

${


On Thu, Nov 28, 2013 at 5:22 PM, anakin59490 <[email protected]> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to