0 Replies Latest reply on Mar 19, 2006 11:57 PM by Aakash Vajhallya

    how to accomplish lock with NOWAIT as in hibernate?

    Aakash Vajhallya Newbie

      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