We are developing the project by using spring batch partition.Our requirement is we will upload the file and validate the each record from file ,if all the records perfect then only will store in database.for that
We used Spring batch partitioning 1. ItemReader,CustomItemProcessor and CustomWriter.In ItemReader will read the data and CustomItemProcessor will validate the data finally CustomItemWriter will persist all the data in preparedStatement.Once all the process done finally will commit the data,how to do in one connection with more than one thread