I\'m trying to use Pessimistic locking in JPA, over Hibernate 3 against a Postgres Database. I can\'t get the lock to time out - it just seems to hang forever.
Here
Put this in your persistence.xml:
Or set the property before calling the first lock.