Re: EditingContext-Sync [was: WOLongResponesePage Problem]
Re: EditingContext-Sync [was: WOLongResponesePage Problem]
- Subject: Re: EditingContext-Sync [was: WOLongResponesePage Problem]
- From: Alexander Spohr <email@hidden>
- Date: Wed, 28 May 2008 13:51:57 +0200
Am 27.05.2008 um 22:58 schrieb Tonny Staunsbrink:
The reason consider using the same editing context, is that sooner
or later i properly wan't my eo's to be displayed to the user
At the end of the LongResponse I guess?
and usign two ec's will either force me to localize eo's (and using
global ids), which i consider a bit clumsy,
You either localize them or just fetch them into the new
EditingContext. Nothing clumsy about it.
or i will have to keep a reference to the newly created ec in the
background job, and that bookkeeping adds up, if the user can
perform several backend jobs.
The EditingContexts do the bookkeping anyway and saveChanges() will
propagate the changes.
If you are about to create new objects, I'd recommend using a new
EditingContext anyway, otherwise you might blow the whole Session if
something goes wrong.
Or did I miss your point?
atze
_______________________________________________
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