This content has been marked as final.
Show 2 replies
-
1. Re: QueuedPessimisticEJBLock not releasing lock on read-only
adrian.brock Aug 4, 2005 11:48 AM (in response to mjtodd)No that is not a valid change. isReadOnlyTxLock is redundant.
If the lock really is "read only" there will be no transaction synchronization.
If there is a transaction synchronization, it will be because it has been upgraded to a write lock and the synchronization will release the lock at the end of the transaction.
See EntitySynchronizationInterceptor$InstanceSynchronization::afterCompletion -
2. Re: QueuedPessimisticEJBLock not releasing lock on read-only
ereze Dec 26, 2005 6:53 AM (in response to mjtodd)Adrian,
So it means that if the transaction was upgraded to write due to writing some object then the next used read-only methods will be locked?
Thanks,
Erez