0 Replies Latest reply on Feb 22, 2006 4:14 AM by rossiutilia

    transactions from client side

    rossiutilia

      Hi,
      I'm sorry if my question will be obvious... but I'm a newbie on ejb3...

      I created an entityManager, and I use this in many functions which retrieves data and write data to a database throught Hibernate3.

      I use this from my client (a swing application) in this way:

      private MyBean myBean;
      ...
      myBean = (MyInterface) context.lookup(MyInterface.class.getName());
      ...
      myBean.doThis();
      myBean.doThat;
      etc...

      I would like to include all these operations inside a transaction.
      How is it possible?

      I read in some newsgroup how to use transactions inside an instance of an entitymanager, but I need to use the transaction from the "Client side"...

      Does anybody can help me?

      Thank you in advance.
      Alessandro Rossi