Hi,
We have a simple scenario where we have to control the execution/ termination of the "ItemWriter" based on the file size of the file used by "FlatFileReader".
We are using the "FlatFileReader" to read from a csv file and "JdbcBatchItemWriter" to write into the oracle database.
Since the writing into the DB is always comparatively expensive, I thought of mitigating the cost of executing the ItemWriter if the file is 0kb.
Please let me know, if spring batch has a solution for this scenario and if it does, please let me know how to configure/ write code to get this done.
Thanks


Reply With Quote
