This content has been marked as final.
Show 1 reply
-
1. Re: AutoCommit false
drcharris Dec 6, 2001 12:28 PM (in response to silvia)If you're using a true XA DataSource then you shouldn't be trying to call commit or rollback on the connection anyway. Use of an XA DataSource indicates that you could be calling this code as part of a larger transaction involving other resource managers, so explicit transaction management doesn't make sense within your code.
The best you can do is call setRollBackOnly() on it which will make the transaction roll back when your current transaction context finishes.