0 Replies Latest reply on Oct 7, 2005 1:57 PM by Zihong Lu

    best practice for controlling transaction boundaries?

    Zihong Lu Newbie

      In some specific cases, I would like to control the transaction boundary. For example, I tried

      publis class MyLogicBean implements MyLogic {

      public void f1WithTx() {...}
      public void f2NoTx() {...}
      public void f3WithTx() {...}


      When in another session bean that I called

      f2NoTx() ;

      unfortunately, the f3WithTx() did throw exception, complaining about no session or session is closed.

      Is this the right way to control transaction boundary? What is the best practice?

      Thanks in advance.