This content has been marked as final.
Show 2 replies
-
1. Re: JBoss 4.0.2 - You cannot set autocommit during a managed
marklittle Mar 14, 2006 7:32 AM (in response to andytsoy)Sounds to me like your database connection has been obtained from an XADatasource and is enlisted within a transaction managed by JBoss. In which case, you aren't allowed to change the autocommit flag (it has to remain as false) and the transaction manager will commit or rollback on your behalf. If you don't have visibility of this db connection in your code, then it may be an idea to ask the Portlet guys.
Mark. -
2. Re: JBoss 4.0.2 - You cannot set autocommit during a managed
avanikamal Aug 14, 2006 8:56 PM (in response to andytsoy)The Spec says that "Attempting to enable autoCommit by calling connection.setAutoCommit() with a value of true will throw an SQLException."
Why does JBoss throw SQLException when setAutoCommit(false) is called?
Thanks.
Kamal