ec locking
ec locking
- Subject: ec locking
- From: Mike Schrag <email@hidden>
- Date: Sun, 10 Apr 2005 11:14:36 -0400
I have a case where an object (call it Object A) is constructed with
an EO. Later on, Object A is going to localInstanceOfObject the EO
to edit it with its own created editing context. The issue I have is
that the original EC of the passed-in EO goes away soon after
constructing Object A, so I need to localInstanceOfObject the EO in
the constructor of Object A (since I can't localInstanceOfObject
after the original EO's EC is disposed). If I don't plan on EDITING
the EO until later, can I wait until just prior to editing to lock
the new EC, or do I need to lock the EC prior to doing even a
localInstanceOfObject call? So the root question here is what
operations on an EC actually require locking to prevent problems?
Thanks
ms
_______________________________________________
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