0 Replies Latest reply on Jul 14, 2005 1:30 PM by mbe1

    EJB3 exclusive lock on entity

    mbe1

      Hi,

      I'm realy new to J2EE and EJB3.

      Is it possible to lock an entity exclusivly for one client? I have the following scenario:

      - 2 clients or more (Standalone Java Clients) accessing customer entities.

      Client 1 opens customer A
      Client 2 opens customer A

      So far so good. Both are clients are in "viewmode".
      The question is, how can one of the clients mark customer A "editing" so the other client has to wait, until client A commits its changes?

      If there is any example code, post it ;)


      Thanks!

      Meikel