Announcement Announcement Module
Collapse
No announcement yet.
Creating file name dynamically while writing. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating file name dynamically while writing.

    We have a scenario where we have to write the data to a File. Presently we are using FlatFileItemWriter in order to write data to flat file using xml tag. PFA snippet from our xml file.


    Where <beansroperty name="resource" value="${outputFile.Path}"/>

    Represents the destination file where data will be written.
    is there a way to change the destination file name dynamically instead of reading from property file. E.g. Each and every time a writer is called a new file should be created with dat/time appended to it.

  • #2
    You should use the late binding feature: http://static.springsource.org/sprin...l#late-binding

    Comment


    • #3
      Thanks for the reply. Issue got solved with this late binding feature.

      Comment

      Working...
      X