-
FEATURED COMPONENTS
First time here? Check out the FAQ!
usually we have to do something before user exit, for example, close the connection for databse, or destroy the session.
one way is to use DesktopCleanup listener,but i've failed.
Hmmmm, we have this theme in various threads. I mean that's a problem of the http protocol.
Who can send something to the server if the user turns off the power of his PC or close
the browser or change the URL?
So you see it right. In my eyes too a probable way is to do the cleanings on the server:
1. decrease the SessionTimeout
2. take a Conection Manager. Hibernate have its own session and handles them.
3. Let tomcat hold the connection to the database
regards
Stephan
Asked: 2009-08-26 13:20:55 +0800
Seen: 284 times
Last updated: Aug 27 '09