Mar 27th, 2012, 07:48 AM
Custom Item Writer Skip Behaviour
I have Implemented ItemWriter and am using jdbcTemplate to update database in write(list<T>..) method.
My question is,
i get a list of objects in the write() method, and i am having a For loop to Update each record in Database using JdbcTemplate.
If one record fails to update in the list and exception is thrown by jdbcTemplate.update(), does it mean that the rest of the items are not processed at all?
do i have to write custom logic in For loop inside Write() to catch exception and skip according to skip settings? if yes, how do i get the Skip Setting in the Custom Item Writer?
Tags for this Thread