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.


roperty name="resource" value="${outputFile.Path}"/>
Reply With Quote