1 Reply Latest reply on Jun 12, 2003 2:46 AM by Alexey Loubyansky

    Optimistic Lock

    regulus Newbie

      Hi, have anyone tried JDBCOptimisticLock in JBoss 3.2? I've added the line
      <locking-policy>org.jboss.ejb.plugins.lock.JDBCOptimisticLock</locking-policy> to container configuration (standardjboss.xml), but I'm keep getting this error:
      NullPointerException at ...

      Someone get an idea? Thanks

        • 1. Re: Optimistic Lock
          Alexey Loubyansky Master

          Specifying locking-policy is not enough. It needs additional configuration. You have to use custom container configuration.
          in jboss.xml:
          <container-configuration extends="Instance Per Transaction CMP EntityBean">
          <container-name>Optimistic Container</container-name>

          And strategy in jbosscmp-jdbc.xml:

          You are on the wrong forum. You should ask such questions on user forums or on jboss-user mailing list.