• 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: JavaClient offline storage / replication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaClient offline storage / replication


  • Subject: Re: JavaClient offline storage / replication
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 15 Apr 2009 10:27:02 -0700


On Apr 15, 2009, at 10:08 AM, John Huss wrote:

Well, let's say it was read-only.  What would the process look like?

1) Fetch an EO from the server
2) Get an editing context that is connected to the client database
3) Local instance the EO into the client EC
4) Save the client EC

But would this work? I haven't done any work with multiple DBs concurrently on the server either.

No, that won't work. ECs are not connected to databases, that is lower down in EOF. Using localInstance won't change where EOF thinks the object is from. This is going to be very tricky to make work, EOF is going to stand in your way at every turn. Hmmm, a separate EOModelGroup, and EOF stack might be a good start. But I think you are going to need to create the objects in the local database and then copy the data over.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
  • Follow-Ups:
    • Re: JavaClient offline storage / replication
      • From: John Huss <email@hidden>
References: 
 >JavaClient offline storage / replication (From: John Huss <email@hidden>)
 >Re: JavaClient offline storage / replication (From: Stamenkovic Florijan <email@hidden>)
 >Re: JavaClient offline storage / replication (From: David Avendasora <email@hidden>)
 >Re: JavaClient offline storage / replication (From: John Huss <email@hidden>)
 >Re: JavaClient offline storage / replication (From: Chuck Hill <email@hidden>)
 >Re: JavaClient offline storage / replication (From: Guido Neitzer <email@hidden>)
 >Re: JavaClient offline storage / replication (From: John Huss <email@hidden>)

  • Prev by Date: Re: JavaClient offline storage / replication
  • Next by Date: Re: JavaClient offline storage / replication
  • Previous by thread: Re: JavaClient offline storage / replication
  • Next by thread: Re: JavaClient offline storage / replication
  • Index(es):
    • Date
    • Thread