0 Replies Latest reply on Dec 5, 2005 11:26 AM by tscondor

    auto-commit and oracle

    tscondor

      Hi!
      I have a problem with jboss-4.0.3 SP1 and Oracle 9.2.
      In my session bean, on the costructor method, I make a DB connection.
      This connection will be used from a method. When I call commit() on my method, I take this exception:

      You cannot rollback with autocommit set!

      I have print con.getAutoCommit() and it is false!!!
      How can I set autocommit to false?
      I don't have any idea...

      Thanx in advance