2 Replies Latest reply on Oct 30, 2002 11:29 PM by Vicky Kak

    Why this result??

    Vicky Kak Master

      Hi,
      ******************************
      int i=10;
      UserTransaction trans=(UserTransaction)ocontext.lookup("UserTransaction");
      out.println("Value Of i before begin:"+i+"");
      trans.begin();
      i++;
      trans.rollback();
      out.println("Value Of i:"+i+"");
      **************************************
      Why I am getting the output of i as 10 and 11 all the time,should it not be 10 and 10.
      regards
      Vicky