In my current implementation my item writer nests transactions. So problem in the call of the second method does not cause the rollback of the first method transaction.
However exception thrown by the second method results in the Spring Batch to retry and hence results in the duplicates being posted as first method in the itemwriter will also be called again.
I have set the retry-limit to zero. But it does not seem to be working. Is there any reason it is not working. I want to disable retry. Also i am skipping the records for any exception thrown.
Thanks a lot.


Reply With Quote
. 