wood burning stoves 2.0*
The moose likes JDBC and the fly likes Rollback when any error occurrs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Rollback when any error occurrs" Watch "Rollback when any error occurrs" New topic

Rollback when any error occurrs

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
I have transaction of statements .I am settings AutoCommit to false.But when an error occurs for data truncation in 2nd statement ,it not rollback the changes done by other statement .My need is whenever any error occurs ,the whole batch should be rllback.
Don't get me started about those stupid light bulbs.
subject: Rollback when any error occurrs
Similar Threads
autoCommit doubt
Commit & Rollback using java?
Spring Batch: Commit-Interval not honored after roll back during write
On Rollback in EJB,How to perform some function
Need suggestion