1 Reply Latest reply on Sep 19, 2007 12:50 PM by griffij1

    How to set auto commit to false in jboss 4.2

    lakshmansai

      Hi,

      I am getting problem on auto commit. I am using IBatis as a persistence frame work and mysql as data base. When i am trying to commit in IBatis i am getting exception as already commited.

      I am getting following exception when i am trying to update query

      java.sql.SQLException: You cannot commit during a managed transaction!

      Can any body help to resolve this issue.

        • 1. Re: How to set auto commit to false in jboss 4.2
          griffij1

          Managed transaction environments (JBoss is one) do not allow client managed transactions (commit, rollback, etc.). Hibernate has methods for transaction management when running on JBoss. I would bet the iBatis also does but I have no experience with it.

          Hope this helps.