This basically answers the question itself. You must (MUST MUST MUST) lock / unlock your editing contexts! Only the defaultEditingContext is locked / unlocked for you!

Look into the autolocking features of MultiECLockManager [1] or ERXEC [2] if you don't want to bother locking your ECs. Don't try locking yourself. You will most probably fail as there are many cases you won't find if you had to ask the question below. Go with the available options and REALLY use them. Your life will be miserable without!

Guido

[1] http://codeferous.com/files/MultiECLockManager.java
[2] http://wiki.objectstyle.org/confluence/display/WONDER/Tutorials


On 21. Jun. 2009, at 20:45 , Vicky C. Miller wrote:

We are not using EOSharedEditingContext anywhere in our application. We are
using following Editing Contexts in our application :

1. At some places of our application we are using session's
defaultEditingContext()
2. At some places of our application we are creating a new EOEditingContext
where ever it is required.

vm
-----Original Message-----
From: Travis Britt [mailto:tbr...@phigment.org]
Sent: Saturday, June 20, 2009 11:01 AM
To: webobjects-deploy@lists.apple.com
Cc: vcmil...@cssg.com
Subject: Re: Excessive WebObjects Locks

Are you using EOSharedEditingContext anywhere?

tb

On Jun 19, 2009, at 6:45 PM, Vicky C. Miller wrote:
Our issue is occurring where the code uses EOEditingContext and other
objects in the WebObjects API that acquire a
com.webobjects.foundation.NSRecursiveLock.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- dep...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/guido.neitzer%40gmail.com

This email sent to guido.neit...@gmail.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to