On 13 Aug 2009, at 13:39, Mike Schrag wrote:
I have been watching Chuck's podcast - "WebObjects Quite Good
Practices", and I would like to make absolutely sure that I
understand this correctly.
Q: Is it true to say:
---------
If I use ERXEC to create all my editingContexts, using:
EOEditingContext ec = ERXEC.newEditingContext();
then I do not have to worry about locking, it all happens
automagically.
assuming you have the appropriate properties set to autolock
Are the default settings to 'autolock'?
Also, are the ECs that I create in the middle of an RR-loop safe?
---------
That is absolutely correct... but (there is always a but, isn't
it ;-) if you are not within a RR-loop (think of separate long
running threads, ...) you have to lock manually.
.. unless you use ERXRunnable
Cool, I shall investigate.
ms
_______________________________________________
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/gowdy%40mac.com
This email sent to [email protected]
_______________________________________________
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]