OK. I got the set file name part work. <camel:setHeader headerName="CamelFileName"> <camel:constant>request-${date:now:yyyy-MM-dd-HHmmssSSS}</camel:constant> </camel:setHeader>
is equivalent as: setHeader(Exchange.FILE_NAME, constant("request-${date:now:yyyy-MM-dd-HHmmssSSS}")) -- View this message in context: http://camel.465427.n5.nabble.com/Problem-from-Java-DSL-to-Spring-DSL-tp5732558p5732562.html Sent from the Camel - Users mailing list archive at Nabble.com.