posted 6 years ago
I need to read csv files from a folder and write to DB, also archive the files. Below is the job described in xml
multiResourceReader bean definition
The code is working fine, but instead of providing the "resources" property value in xml, i need to get it from "validateFileStep" step, as the reader should read only those csv files which are formatted properly. I should pass the same to archiveFileStep also, so that name the files can be appended with completed or failed in the archive accordingly.
Below is the reader bean def