Hi Mahesh, You can try setting your file name with the dynamic format: <camel:setHeader headerName="CamelFileName"> <camel:simple>${date:now:yyyyMMdd}/someFileName.xml</camel:simple> </camel:setHeader>
This will create a folder with the dynamic date and then put 'someFileName.xml' inside of it. This should work in the Java DSL as well. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-creating-directory-with-current-date-in-yyyyMMdd-format-tp5670997p5696406.html Sent from the Camel - Users mailing list archive at Nabble.com.