Hello,

Is there a way to force the PB to *not* share local instances of an
Object that it finds with multiple threads?  I would prefer, for at
least some of my classes, that one thread not see the changes made by
another unless that object was specifically stored in the PB.

Would I need to use the ODMG API to do this currently?  If so, can I use
the PB API and ODMG concurrently on the same repository/db?

Thanks,
Mark

Thomas Mahler wrote:
> 
> Kevin Viet wrote:
> >
> > If two threads query the API for this object, they share the same
> > reference on this object.
> 
> correct.
> 
> >
> > So if a thread change a value (without update the object through the
> > API) of the object, the other thread will see this change (even for the
> > object cache)
> 
> correct for PB API. For ODMG we have a pessimistic locking that will
> protect against such conflicts.
> 
> >
> > Won't any problem arise if thread1 change some values and thread2 is
> > commiting the update.
> 
> correct
>

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

Reply via email to