Most transaction managers, include JDBC transactions, do not support "nested" transactions. There is only one transaction per JDBC connection, and if you commit it, everything is committed.
If you're using a more advanced transaction manager, for example JTA or whatever J2EE provides, you may be able to arrange for named transactions, so that committing transaction X doesn't affect transaction Y at all. I don't know if this is possible, I stick with JDBC.
_________________ Code tags are your friend. Know them and use them.
|