Announcement Announcement Module
Collapse
No announcement yet.
Custom Item Writer Skip Behaviour Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Item Writer Skip Behaviour

    Hi,

    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?


    Regards,
    Pravin
Working...
X