This content has been marked as final.
Show 1 reply
-
1. Re: Optimistic Locking
vanitas Jun 28, 2003 5:05 AM (in response to freiburg)Hi,
In you standardjboss.xml put:
---
<locking-policy>org.jboss.ejb.plugins.lock.JDBCOptimisticLock</locking-policy>
---
instead of the
---
<locking-policy>org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock</locking-policy>
---
You must also define strategy for the locking in either deployement destriptor or in standardjbosscmp-jdbc.xml:
---
<optimistic-locking>
<modified-strategy/>
</optimistic-locking>
---
you can choose of a few strategies (look into jbosscmp-jdbc_3_2 under jboss/docs/dtd directory).
I'm testing this optimistic thing now, and unfortunetally I must say that I get plenty of 'Reentrant method call detected' errors :(.
best regards,
greg