cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lon Varscsak <lon.varsc...@gmail.com>
Subject Re: Syncing peers in single thread
Date Wed, 09 Sep 2015 21:04:54 GMT
There are just some times where we currently assume (using EOF) that after
commit, that all peer contexts are synced.  At a minimum, I would need to
know that before I generate a response in a web application, that these
contexts are synced.

-Lon

On Sun, Sep 6, 2015 at 11:15 PM, Andrus Adamchik <andrus@objectstyle.org>
wrote:

> Doing so is possible by binding a custom ObjectStoreFactory in DI
> container and overriding 'ObjectStore.setDataRowCache' method in
> ObjectStore subclass that the factory would create. However I am afraid
> this will end up with deadlocks if more than one ObjectContext can commit
> at the same time.
>
> So could you elaborate why you need synchronous peer sync?
>
> Andrus
>
> > On Sep 1, 2015, at 12:47 AM, Lon Varscsak <lon.varscsak@gmail.com>
> wrote:
> >
> > Hey all,
> >
> > I know that Cayenne sync's peer object contexts on a separate thread, but
> > for my case this doesn't work.  I need to know that when committing, that
> > the peer synchronization happens immediately after the commit.
> >
> > How would I pull this off?
> >
> > Thanks,
> >
> > Lon
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message