Re: HowTo cleanup Session data after an Application error occurred
Re: HowTo cleanup Session data after an Application error occurred
- Subject: Re: HowTo cleanup Session data after an Application error occurred
- From: Art Isbell <email@hidden>
- Date: Wed, 10 Sep 2003 10:48:12 -1000
On Wednesday, September 10, 2003, at 10:09 AM, Helmut Tschemernjak
wrote:
within a session I store a TCP/IP socket connection for my private
communication to another server. When the session crashes and WO
reports the very helpful error stack backtrace. I need a way to close
the socket connection which is stored in the session object.
Well, the first thing to do would be to eliminate the reason(s) for
session crashes :-) Session crashes aren't normal behavior, so unless
a WO bug exists for which no workaround exists, you should be to avoid
session crashes.
The error stack backtrace page is returned by
WOApplication.handleException(). You should be able to override
handleException() in your Application class to close the socket
connection and then return super.handleException() unless you want to
return a different page.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.