This content has been marked as final.
Show 1 reply
-
1. Re: caching and locking of CMPs
danl_thompson Feb 3, 2005 1:54 PM (in response to danl_thompson)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.