Reputation: 426
I have spring batch job which perform following steps
Now the issue is this composite item writer fail if any of jdbc item writer don’t update row due to condition is not matched or to be skipped.
Use case is
Upvotes: 2
Views: 322
Reputation: 31600
The idea of wrapping each chunk in a transaction is to be able to process the whole chunk of items as a unit: either all items are committed or none of them is committed (all or nothing semantics).
Some Writers needs to update and some needs to be skipped- need help to resolve this.
If you need fine grained control like that, you need to create a custom writer.
Upvotes: 1