-
1. Re: Optimistic Lock
aloubyansky Jun 12, 2003 2:46 AM (in response to regulus)Specifying locking-policy is not enough. It needs additional configuration. You have to use custom container configuration.
in jboss.xml:
<container-configurations>
<container-configuration extends="Instance Per Transaction CMP EntityBean">
<container-name>Optimistic Container</container-name>
<locking-policy>org.jboss.ejb.plugins.lock.JDBCOptimisticLock</locking-policy>
</container-configuration>
</container-configurations>
And strategy in jbosscmp-jdbc.xml:
...
<optimistic-locking>
<version-column/>
<field-name>versionField</field-name>
<column-name>ol_version</column-name>
<jdbc-type>INTEGER</jdbc-type>
<sql-type>INTEGER(5)</sql-type>
</optimistic-locking>
You are on the wrong forum. You should ask such questions on user forums or on jboss-user mailing list.
alex