[jboss-user] [JNDI and Naming] - Re: JBoss autocommit problem

vishal kalra do-not-reply at jboss.com
Thu Feb 3 06:13:27 EST 2011


vishal kalra [http://community.jboss.org/people/vykalra] created the discussion

"Re: JBoss autocommit problem"

To view the discussion, visit: http://community.jboss.org/message/585147#585147

--------------------------------------------------------------
All,

Sorry for reviving this old thread but I am getting exactly same issue 

" java.sql.SQLException: You cannot rollback with autocommit set!"

I tried to <no-tx-datasource> instead of <local-tx-datasource> in the -ds.xml file , I am deploying this on jboss 4.3.0.GA. My application uses hibernate and in one of the HibernateSessionWrapperclass I have the following code

 if (this.session.connection().getAutoCommit()) {
                                                  this.session.connection().setAutoCommit(false);
                                        }

I tried commenting this too without success. Please help !!! m clueless here...
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/585147#585147]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110203/c69ed0d1/attachment.html 


More information about the jboss-user mailing list