0 Replies Latest reply on Aug 3, 2004 2:01 AM by Samson Lee

    Client transaction on CMB + Stateless session bean

    Samson Lee Newbie

      Here's the problem:

      UserTransaction is started on client-side. Then, client performs an update on entity bean, follows by an execution of stateless session bean. Pseudo code:

      utx.begin();
      cmbA.setField("new value");
      sessionBean.readCmbAValue();
      utx.commit();
      


      where readCmbAValue opens a JDBC connection and "SELECT" the newly-updated field and return it.

      The code runs fine, and database is updated correctly. However, readCmbAValue always get the old value. Any hints?

      My configuration is:
      JBoss 3.2.5 with local transation for MS SQL 7.0