0 Replies Latest reply on Aug 20, 2006 11:42 PM by sajid2045

    Questions about optimistic locking.

    sajid2045

      Hi all,
      I want all my entity beans to use "Version Column Locking Strategy". Now, Is there any option to tell it globally??
      Again, Why should I enter my locking policies to jbosscmp-jdbc.xml. I feel like the proper place should be jboss.xml of my ejb-jar . Say for order, my codes will be like this,

       <entity>
       <ejb-name>Order</ejb-name>
       <optimistic-locking>
       <version-column/>
       <field-name>version_lock</field-name>
       <column-name>VERSION_LOCK</column-name>
       </optimistic-locking>
       </entity>
      


      But why should we put this code in jbosscmp-jdbc.xml ?? Is there any way around??
      Regards,
      Sajid.