OK. thanks. I have implemented that in sleep and my Session subclasses. .... except I added a catch and log.error aswell so we will get an email if I get an error in sleep() So we will see ........ it might be a year before I see this error again .....

if you have no catch statement as shown in your example won't this throw anyway?

Kieran

On Dec 3, 2008, at 3:17 PM, Chuck Hill wrote:


On Dec 3, 2008, at 12:15 PM, Kieran Kelleher wrote:

You mean wrap contents of sleep and terminate with try/catch and don't throw, just log it?

That is what I started doing long ago. I think this is a better solution:

public void sleep() {
   try {
        // your code here
   } finally {
        super.sleep();
   }
}


Chuck





On Dec 3, 2008, at 2:55 PM, Chuck Hill wrote:

I can confidently claim to be completely unsure. ;-) If the MultiECLockManager still had it locked, it may not be able to. I don't use ERXEC so I really don't know. Check your Sessions() sleep() and terminate() methods (and any super class you have) to ensure that they can't throw an exception.



--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
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