6 Replies Latest reply on Sep 12, 2002 1:29 PM by Dain Sundstrom

    question about locking-policy, MethodOnlyEJBLock

    fox Newbie

      It seems that using org.jboss.ejb.plugins.lock.MethodOnlyEJBLock locking policy allows two threads associcated wtih
      two transactions to concurrently access the same entity bean . Am l correct ?
      It bring up a question in my mind, this locking-policy may introduce data consistency problem if two transactions calling some business
      methods such as setter methods of same entity bean. Transaction may read uncomitted changes made by other transaction or overwrite changes made
      by other transaction. Am l correct ?

      It is highly appreciated if some jboss guru can provide your insight into above question. Thanks a lot in advance.