Menu

UserTransaction does not rollback

Help
chin wei
2003-10-31
2003-11-05
  • chin wei

    chin wei - 2003-10-31

    help!!

    currently using the tyrex with tomcat, but the user transaction when rollback is called.

    my code is as follow:

    InitialContext initialcontext = new InitialContext();
    UserTransaction ut = (UserTransaction) initialcontext.lookup("java:comp/UserTransaction");
    ut.begin();
    TxDAO dao = TxDAOFactory.getDAO ();
               
    int retvalue = dao.addItem (rolename);
    ut.rollback();

    is there any configuration that i must set to enable the rollback?

    please advise,
    thank you

     
    • Anonymous

      Anonymous - 2003-11-05

      I'm having the same problem and can't find solution to it. I'm using tyrex on tomcat with mssql server2k.

      Calling begin, rollback or commit on UserTransaction doesn't have any influence on transaction's success.

      If anyone has the solution to this problem please reply, because I'm losing valuable time with this issue. Tnx.

       

Log in to post a comment.