• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Connection pooling + WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connection pooling + WebObjects


  • Subject: Re: Connection pooling + WebObjects
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 12 May 2008 22:01:41 -0400

So if I have Wonder OSC synchronization going on inside a single app and I lock an OSC (in a background long running thread for example), how does that affect the synchronization between it and other OSCs while it is locked? How are snapshots affected in the locked OSC during the lock period while the same snapshots change in other OSCs and vice-versa?
We still have to work within the bounds of EOF locking. Syncing is triggered by the EOObjectStore.ObjectsChangedInStoreNotification (and our own custom ERXDatabase.SnapshotCacheChanged), which pushes notifications into a queue that is processed in another thread. In that thread, we iterate through the object stores that are registered with the synchronizer, and depending on each OSC's sync settings, lock the target OSC and deliver the changes. If you have some long running operation that has a lock on the objectstore, it would be best to not register the object store with the synchronizer, because it WILL block the notification queue until it's done. I've never run into this being a problem in practice, but as with any long lock in EOF, you do need to be mindful of it.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Connection pooling + WebObjects (From: "Shravan Kumar.M" <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Kieran Kelleher <email@hidden>)
 >Re: Connection pooling + WebObjects (From: "Shravan Kumar.M" <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Chuck Hill <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Mike Schrag <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Andrew Lindesay <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Mike Schrag <email@hidden>)
 >Re: Connection pooling + WebObjects (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Connection pooling + WebObjects
  • Next by Date: Re: Connection pooling + WebObjects
  • Previous by thread: Re: Connection pooling + WebObjects
  • Next by thread: Re: Connection pooling + WebObjects
  • Index(es):
    • Date
    • Thread