Hi,

Jair da Silva Ferreira J�nior wrote:
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. My
questions are: 1) What happens when two different ODMG transactions
try to write lock the same object at the same time? A
LockNotGrantedException is thrown

yes!


in one of the transactions or one
transaction waits for the other one to finish or release the lock?

no!


2)
What is the difference between Transaction.WRITE and
Transaction.UPDATE lock modes?

UPGRADE is used to upgrade an existing READ lock to a WRITE lock. So the semantics of UPGRADE == WRITE.

cheers,
thomas

Thanks, Jair Jr


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to