I have a spring batch application which has a composite writer and both of the writers makes a call to stored procedure using simplejdbccall. The stored procedures takes the input and doing some data validations and iterations and inserts into a table. Both of the stored proc writes into same database but works on diff table.
The composite writer is used here because there are two different stored procedure needs to be called.
I see the first writer writes into DB through stored procedure even though the second writer fails. I dont see the first writer rolls back if the second one fails. Is it because its a stored proc? Can we still make the composite writer transactional ? Any change is required from stored procedure ? any idea? Thank you