lock() specified in EJB3 righ now supports only two LockModeTypes (Read and Write). There is no facility as UPGRADE_NOWAIT given in Hibernate.
I want to achieve pessimistic locking which is not possible as it is going to wait state until I release the lock. How will I accomplish lock with no_wait option ? Please help me with a workaround.
Thanks,
Aakash