Re: Q about locked ec
Re: Q about locked ec
- Subject: Re: Q about locked ec
- From: Jon Nolan <email@hidden>
- Date: Wed, 17 Feb 2010 15:29:18 -0700
- Organization: Loch Garman
Ricardo J. Parada wrote:
Hmm... I'm using background threads in my apps to do some processing.
The thread creates is editing context for its own use. Something
like this:
EOObjectStoreCoordinator parentObjectStore = new
EOObjectStoreCoordinator();
editingContext = ERXEC.newEditingContext(parentObjectStore);
I pass GIDs to this background thread. But if I understand what you
are saying, creating the editing context like this can still get me in
trouble still.
Ricardo
Ricardo,
It might be useful to consider using ERXTimerTask or dive into its
implementation for more info. I run all my background threads this way
and I have zero lock issues.
I don't create my own OSC either for what that's worth.
Jon
_______________________________________________
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