3 Replies Latest reply on May 28, 2007 12:31 PM by Mark Little

    COMMIT is not working

    Ratna Vasantha Newbie

      Hi ,
      I am using jbossts for my transaction. I have only one datasourse :
      In my code:

      TransactionManager transactionManager = trxManager.getTransactionManager();
      transactionManager.begin();
      long i = jDBCDBHandler.readValue();
      System.out.println("read i " + i);
      i++;
      jDBCDBHandler.updateValue(i);
      System.out.println("Updated i : " + i);
      transactionManager.rollback();

      Even I am calling the rollback. My values are commited to the database.

      Would you please any body help me

      My Spring-Config is :


      com.mysql.jdbc.Driver


      jdbc:mysql://localhost:3306/TEST


      user


      password

      <!-- configuration pool via c3p0-->

      5


      100

      <!-- seconds -->

      100


      10


      5


      100



      30


      10000


      true