Re: Trying to clear a dead-lock of some type
Re: Trying to clear a dead-lock of some type
- Subject: Re: Trying to clear a dead-lock of some type
- From: Ben Trumbull <email@hidden>
- Date: Thu, 19 May 2005 12:52:37 -0700
Bill,
You should only use refreshAllObjects upon a locked EC.
Second, there's no point in calling refreshAllObjects on a newly
created EC. I think you probably want to eliminate all calls to it
and instead null out the EC (or call dispose() or reset()).
You're already creating a new EC every time. Just create one, use
it, throw it away.
Finally, you must use a finally block. If there is an exception,
your code never unlocks the EC. I would unlock and dispose the EC in
the finally block.
--
-Ben
_______________________________________________
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