3 Replies Latest reply on Apr 26, 2011 11:11 AM by Hubert Felber

    How to set autocommit to false for managed transactions ?

    Hubert Felber Newbie



      How can I set autocommit to false to be able to do managed transactions on JBoss 5.1?


      My problem is, that in my transaction handling the commit/rollback have no effect, because every statement is committed as soon as executed.


      This was working fine in JBoss 4.2 but doesn't work anymore since I changed to JBoss 5.1.


      I use EJB 2.x and CMP, my database config looks like this:




















              <connection-property name="autoCommit">false</connection-property>





      Unfortunately I have no idea what's going wrong and did not find helpful information on the internet.


      Could anyone please give me a hint? What do I have to do?


      Thank you very much