It's possible to use "checkpoint" into "itemReader" and "itemWriter".
If I define a commit each 10 items, the batch reads 10 items and calls the "itemWriter" code. Now, if the "itemWriter" fails (rollback on database), I have:
- checkinfo for "itemReader" = 10
- checkinfo for "itemWriter" = 0
So, when I restart the batch, I would like that it restarts with the 1st item and not the 11th.
How can I do that? I think that the "checkpoint infos" are not identical for "itemReader" and "itemWriter".