3 Replies Latest reply on Feb 3, 2011 8:23 AM by vishal kalra

    "You cannot commit with autocommit set!"

    Albert Yu Newbie

      I follow the instruction of Chapter 9. Using Hibernate at
      http://docs.jboss.org/jbossas/getting_started/startguide40/hibernate.html
      I get exception "You cannot commit with autocommit set!" from
      org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection all time.

      I found in BaseWrapperManagedConnection's constructor, it sets "jdbcAutoCommit = true;" by default. Should it be set to false by default?

      Is there any other solution, for example set jdbcAutoCommit to false by configuration?


      thanks in advance for any help.

      Albert