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: Sacha Mallais <email@hidden>
- Date: Thu, 19 May 2005 13:34:36 -0700
On May 19, 2005, at 1:24 pm, WebObjects wrote:
I'm having trouble where the "ec.unlock()" in a "finally block" is
outside
the scope of the method.
I'm not positive what you're asking, but:
<java101>
Your method should look something like this:
EOEditingContext ec.lock();
try {
something;
} catch (foo) {
handle foo;
} finally {
ec.unlock(); // unlock in the finally clause
}
</java101>
sacha
--
Sacha Michel Mallais - 800 lb. gorilla
Global Village Consulting Inc.: http://www.global-village.net/
Bottom posting is your friend:
http://www.river.com/users/share/etiquette/
_______________________________________________
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