• 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: EOEditingContext Lock/Unlock best practice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOEditingContext Lock/Unlock best practice?


  • Subject: Re: EOEditingContext Lock/Unlock best practice?
  • From: shravan kumar <email@hidden>
  • Date: Thu, 9 Apr 2009 12:44:29 -0700 (PDT)

Thanks so much Guido for your advise.

Am sorry to disappoint you. We are just concerned about issues (performance or any number of changes in app that we may have to take up) that may arise by converting our app to Wonder compliant. My Manager is bit reluctant in going this way as our app is stable at this time and is live.

So, am just looking for alternatives. Thanks so much for your understanding.

In due course I will try to convince my manager to make our app Wonder compliant and benefits we have doing that. BTW, is there any detail any where on the internet, the wonder compliance and pros and cons detailed.


--- On Fri, 4/10/09, Guido Neitzer <email@hidden> wrote:

From: Guido Neitzer <email@hidden>
Subject: Re: EOEditingContext Lock/Unlock best practice?
To: "shravan kumar" <email@hidden>
Cc: email@hidden
Date: Friday, April 10, 2009, 12:12 AM

I'd rather go with ERXEC - this bring you way more than just EC locking.

Guido

On 9. Apr. 2009, at 11:36 , shravan kumar wrote:

> Hello Group,
>
> I have been pointed to following URl to acquire MultiECLockManager class in wiki and in some EC lock/ unlock issue discussion thread, but this link seems to be broken, can any one provide me the latest stable version of this file:
> http://wocode.com/cgi-bin/WebObjects/WOCode.woa/wa/ShareCodeItem?itemId=301
> Thank You,
> Shravan Kumar. M
> -------------------------------------
>
> --- On Wed, 4/8/09, Guido Neitzer <email@hidden> wrote:
>
> From: Guido Neitzer <email@hidden>
> Subject: Re: EOEditingContext Lock/Unlock best practice?
> To: "shravan kumar" <email@hidden>
> Cc: email@hidden
> Date: Wednesday, April 8, 2009, 10:04 PM
>
> On 7. Apr. 2009, at 23:43 , shravan kumar wrote:
>
> > For setting the locking property mentioned, does my app need to extend ERXApplication? currently my app is very loosely coupled to Project Wonder i.e., we use different API's from Project Wonder as needed.
>
> You need to extend from ERXApplication, ERXSession and use ERXEC exclusively with:
>
> ERXEC.newEditingContext()
>
> whenever you create a new editing context. The session editing context is done for you. All editing contexts are locked / unlocked for you.
>
> > Moreover, after setting this property should I lock & unlock EOEditingContext in R-R loop or while fetching, saving, or modifying any EO object.
>
> No. It happens automagically.
>
> Just make sure you have no
>
> new EOEditingContext()
>
> calls anywhere in your call, replace all of those with the method mentioned above to get an ERXEC.
>
> cug
>


 _______________________________________________
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

  • Prev by Date: ERXEC Exception
  • Next by Date: Re: EOEditingContext Lock/Unlock best practice?
  • Previous by thread: Re: EOEditingContext Lock/Unlock best practice?
  • Next by thread: Re: EOEditingContext Lock/Unlock best practice?
  • Index(es):
    • Date
    • Thread