Re: locking problem
Re: locking problem
- Subject: Re: locking problem
- From: Nathan Dumar <email@hidden>
- Date: Sun, 19 Dec 2004 17:46:59 -0500
On Dec 19, 2004, at 9:00 AM, Kieran Kelleher wrote:
... checking for null handle before unlocking can prevent you
unlocking a disposed EC:
Good idea.
and in Session sleep, I only unlock it if it still exists:
public void sleep() {
super.sleep();
// If taskEditingContext exists, unlock it
if (taskEditingContext != null) {
taskEditingContext.unlock();
}
}
I'm considering how I could implement this in MultiECLockManager ... or
maybe just set that aside and do the locking and unlocking myself. I'm
hesitant to modify Multi without first having a thorough understanding
of all that's going on, do I don't break something.
and in session awake:
public void awake() {
super.awake();
// If taskEditingContext exists, lock it
if (taskEditingContext != null) {
taskEditingContext.lock();
}
}
I need to think about this more. I'll post again soon, after I figure
something out.
Thanks for your help,
Nathan
_______________________________________________
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