Hi,

I've got issue for renaming a file

this is my route :

from("direct:checkData")
                .beanRef(PAYMENT_SERVICE_BEAN, "checkData(*, ${headers})")
                .choice()
                        .when(simple("${in.body} != null"))
                               .to("{{destination.endpoint.1}}")
                        .otherwise()
                .end()
                .log(this.getClass().getName() + " ***** End of Process file :
${file:name} ***** ");


My bean "checkData" returns the new name of the file and i must save it into
a folder with this new name.


{{destination.endpoint.1}}   comes from a properties file called
endpoint.properties :
destination.endpoint.1={{file.endpoint.1}}
file.endpoint.1=file\:/\\xxxxxx/echange/Payment/SAVE/?filename=&{in.body} 


When i run it, i get this message :

"OnException[... because of Could not resolve placeholder 'in.body' in
string value "file\:/\\xxxxxx/echange/Payment/SAVE/?filename=&{in.body} 


Is it the right way?

Thank's in advance for your help




--
View this message in context: 
http://camel.465427.n5.nabble.com/rename-a-file-tp5743924.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to