Hello Arbona, > -----Original Message----- > From: Arbona Vincent [mailto:[EMAIL PROTECTED]
> I want to know how to use optimistic lock with the PB API. > > I know that I have to put a "Lock Field" as integer or > timestamp, but how OJB manage it? > > When a record is considered as locked and when the lock is removed? You do not explicitely request or release a lock. It is simply that an OptimisticLockException is thrown during PersistenceBroker.store(x) in case x has been modfied after x has been read from the database. You can verify what is going on by switching on p6spy. HTH, Olli --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]