Hi did you set javax.persistence.lock.timeout property? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2013/10/23 tschuler <[email protected]>: > Hi! > > We are using TomEE 1.6.0 snapshot and are actually working on usage of > pessimistic locks for an entity (entityManager.lock(entity, > LockModeType.PESSIMISTIC_WRITE)). > > What we see is that if the entity is allready locked the next locking > attempt results in a PessimisticLockException marking the transaction for > rollback. > > Is there a way to avoid the transaction rollback (or to get a > LockTimeoutException instead that seems to have no effect on the transaction > state)? > > Best regards, > Thomas > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/No-transaction-rollback-in-case-of-pessimistic-locking-failure-tp4665710.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
