On Mar 22, 2011, at 8:50 AM, Kieran Kelleher wrote:

> You *should* lock in background threads.
> 
> ERXEC notificationtEC = (ERXEC) 
> ERXEC.newEditingContext(objectStoreCollection.nextObjectStoreCoordinator());
> notificationtEC.lock();
> try {
>       
>       // do stuff
> 
>       notificationtEC.saveChanges();
> } catch (Exception e) {
>       log.error("We had an unexpected error in background thread blah blah 
> blah....", e);
> } finally {
>       notificationtEC.unlock();
> }
> 

Hi Kieran,

Is this necessary for background thread if Wonder is configured with 
er.extensions.ERXEC.safeLocking=true ?

Or is that why you said *should* ?

:-)

Thanks,
Ricardo

 _______________________________________________
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]

Reply via email to