0 Replies Latest reply on Aug 20, 2003 3:23 AM by Hans-Peter Keck

    entity locking and CMR

    Hans-Peter Keck Newbie


      I am using Jboss 3.0.3 and have a question about the locking of entity beans when you have relationships between your beans. (BTW, I am using the standard QueuedPessimisticEJBLock).
      Assume you have two entity beans, which have a container-managed one-many relationship. What happens to the bean on the one side if I add or remove beans on the many side? Will the one side be locked automatically by JBoss? It seems to be like this with the beans I have written, but I want to be sure that it isn't related to my code.
      The reason why I am asking is that I have some deadlock issues and in order to solve them I need to know exactly how JBoss behaves.

      Thanks in advance,