The lock interceptors role is to schedule thread wanting to invoke method on a target bean
The policies for implementing scheduling (pessimistic locking etc) is implemented by pluggable
locks
We also implement serialization of calls in here (this is a spec
requirement). This is a fine grained notify, notifyAll mechanism. We
notify on ctx serialization locks and notifyAll on global transactional
locks.
WARNING: critical code, get approval from senior developers
before changing.
author: Marc Fleury author: Bill Burke version: $Revision: 57209 $ version: Revisions:
version: 2001/07/30: marcf version: version: - Initial revision
version: - Factorization of the lock out of the context in cache
version: - The new locking is implement as "scheduling" in the lock which allows for pluggable locks
version:
version: 2001/08/07: billb version: version: - Removed while loop and moved it to SimplePessimisticEJBLock where it belongs.
version:
|