1 Reply Latest reply on Jun 28, 2003 5:05 AM by Grzegorz Stelmaszek

    Optimistic Locking

    freiburg Newbie

      Hello to all,
      I'd like to know how I can set jboss for using Optimistic locking instead of pessimistic locking as default. Which xml files I have to modify? Which tags I have to write?
      Thank you very much,

        • 1. Re: Optimistic Locking
          Grzegorz Stelmaszek Newbie


          In you standardjboss.xml put:
          instead of the

          You must also define strategy for the locking in either deployement destriptor or in standardjbosscmp-jdbc.xml:
          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,