camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anakin59490 <>
Subject rename a file
Date Wed, 27 Nov 2013 11:39:58 GMT

I've got issue for renaming a file

this is my route :

    		.beanRef(PAYMENT_SERVICE_BEAN, "checkData(*, ${headers})")
			.when(simple("${in.body} != null"))
		.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 :

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:
Sent from the Camel - Users mailing list archive at

View raw message