camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ychawla <premiergenerat...@yahoo.com>
Subject Re: dynamically creating directory with current date in yyyyMMdd format
Date Wed, 09 May 2012 03:35:19 GMT
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.

Mime
View raw message