1 Reply Latest reply on Feb 3, 2005 1:54 PM by Dan Thompson

    caching and locking of CMPs

    Dan Thompson Newbie

      Very confused. if transacation A does a find on an entity bean, is transaction B blocked from finding the same entity bean until transaction A either commits or rolls back?

      dt

        • 1. Re: caching and locking of CMPs
          Dan Thompson Newbie

          Answered my own question... It is a matter of which EJB container is being used. It is all configurable. Out of the box, CMP 2.x does pessimistic queued locking of the EJB. So yes, transaction A reads a record, transaction B is blocked from reading the same record until A completes... at least in this container... now I can't wait to try other locking methods. There could be quite a speed improvement, although I'll start to see rollbacks where I didn't get them before.

          I love this stuff.