• 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: Practical EditingContext Design Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Practical EditingContext Design Question


  • Subject: Re: Practical EditingContext Design Question
  • From: email@hidden
  • Date: Thu, 16 Feb 2006 16:57:34 +0100



Arturo Perez <email@hidden> a écrit sur 16/02/2006 16:32:23 :

> email@hidden wrote:
> >
> >
> > Is it a good solution ?
> > In the book, different king of EditingContext are explained but wich
> > one do we need to use for the readers ? DefaultShareEditingContext ?
> > Other ?
> >
> > Many thank's for any advice,
> >
> > Jérémy
> That's what the DefaultSharedEditingContext is for (many readers, few
> writers) but most people have trouble implementing it properly.  That may or
> may not be because it's buggy.
Ok, I will try. Just a question :

- "How do WebObjects populate the changes made in all the CooperativeEditingContext (used by the contributors) in the DefaultSharedEditingContext (used by the readers) ?"

>
> What you can do instead is have an application-level editing context and
> set your session's defaultEditingContext to that.  Then when a writer comes
> in you don't set it.

>
> Of course, you'll have to make sure that you do multithreading and
> locking properly in either case.
>
> Alternatively, you can have one app for readers and another for
> writers.  Depending on your requirements you may run into stale data issues.

Yes, but it hard to :
- maintain two differents applications using the same datas (even if it's just reading)
- sometimes the readers become contributors in the same session

>
> -arturo
>
 _______________________________________________
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: Practical EditingContext Design Question
      • From: Arturo Perez <email@hidden>
References: 
 >Re: Practical EditingContext Design Question (From: Arturo Perez <email@hidden>)

  • Prev by Date: Re: Practical EditingContext Design Question
  • Next by Date: Re: JSON / AJAX Requesthandler from Jean-François Veillette
  • Previous by thread: Re: Practical EditingContext Design Question
  • Next by thread: Re: Practical EditingContext Design Question
  • Index(es):
    • Date
    • Thread