May we configure weblogic to setup house-clean before session timeout?
For example, we want server to release token hold by the user when this user's session automatically timeout by the web server.
- httpsession question by Tinou Bao on July 03 2001 22:08 EDT
- httpsession question by Stephen Davies on July 04 2001 00:18 EDT
I believe this is part of the standard servlet api...
I do not think so. It is configuration in the servlet container.
check out javax.servlet.http.HttpSessionBindingListener.
what will javax.servlet.http.HttpSessionBindingListener do?
(I don't know how to get this information, do I have to install a servlet-doc for Jbuilder?)
Well if you're doing any sort of servlet development you should have the J2EE javadoc handy. I don't use JBuilder so I don't know what comes bundled with it. You can download the J2EE documentation from http://java.sun.com/j2ee/download.html.
Any object that implements this interface and then is put into the HttpSession will be send a message when the value is removed from the HttpSession. For example, if the session times out and is destroyed, the object will be sent a notification of the cleanup.
Thanks a lot! However, Can you provide an example? It is not clear on how to do when I read the java DOC
I got an example from Jason Hunter's Java Servlet Programming.