The DAO's I use currently, use JDBCTemplate for all SQL operations.
The application requires that a group of SQL updates should be done within a transaction, so that either all of them are committed together or all are rolled back.
I tried this with JDBCTemplate.batchUpdate, but it looks like each update within the batch is atomic, so a failure in one of them doesnt rollback the whole batch.
Please let me know if there is anyway to tweak JDBCTemplate so that we can control the atomicity of the batch.
I have found that org.springframework.transaction.support.TransactionTemplate is one way to manage transactions but I assume there would have to be major changes to include this. Or is it?
Sun Certified Java Programmer 1.5,
Sun Certified Web Component Developer 5.
"No pain. No Gain"