Yes, we use it.
It is really easy. You need a field in each table which
is either integer or timestamp. I use integer. And then
you need to identify this in your repository_user.xml.
The entry looks like this :

  <field-descriptor id="1"
    name="rowVersion"
    column="rowVersion"
    jdbc-type="INTEGER"
    locking="true"    
  />

I believe that's all. If you get a violation,
an OptimisticLockException is thrown.

Bonnie MacKellar

-----Original Message-----
From: Andy Czerwonka
To: OJB Users List
Sent: 10/28/03 2:43 PM
Subject: Optimistic Locking using the PersistenceBroker API

Has anyone implemented an optimistic-locking strategy (I actually may
need a Pessimistic strategy - not sure yet)  using the PersistenceBroker
API?  Can you point me in the right direction?

-andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to