On Nov 7, 2006, at 6:59 PM, Chuck Hill wrote:
That's right ;-) And childEc = new EOEditingContext(session().defaultEditingContext());
Here is where the deadlock comes from (I finally understood it) : - my long task thread locks the new EOEditingContext(childEc) (which then locks the childEc and the default editing context right?) - my refreshing page does Session._awakeInContext which triggers ERXEC.lock on the default ec ----> deadlock ! The page does not refresh !
So, if I understand correctly you propose to use a child ec that does not have the default ec as parent but rather a new ec. Why did not I think about it ! Thanks ! What difference is there switching from child = new EOEditingContext(ession().defaultEditingContext()); to child = new EOEditingContext(parent); ??? I can't see any but if the two exist... And I would have some last questions to help me make things clear with locking and specially ERXEC : - To lock correctly ec in R-R loops, I can use MultiECLockManger and lock in session's awake and sleep, but if I create my new ecs as ERXECs, do I need to do something else or will it be automagically locked and unlocked even if er.extensions.ERXEC.defaultAutomaticLockUnlock = false ? - From what I understood, it just unlocks, so it still makes sense to use the MultiECLockManger right? For example to automatically lock my childEc in the wizard pages... Thanks a lo for the help ! Fabrice www.easyshadow.com International Corporate Consulting Palais de la Scala 1 avenue Henri Dunant Suite 1155 MC - 98000 Monaco Skype: fabrice.pipart Tel. +377 97 98 21 04 (direct) Fax. +377 97 70 88 07 |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
