Nwalal mi Nyom wrote: > Hi, > I use Tomcat4.0.1,Apache1.3.22. > in my jsp file i use class which implements HtppSessionBindingListener and I have > implement valueBound(....) and valueUnbound(..) methods. > > when i load my jsp valueBound(... ) is called correctly > But when l close my jsp or when i stop Tomcat Server, valueUnbound(...) method is >not called > > can somebody help me
I'm not sure what you mean by "close my jsp", but if you mean close the browser, this will not trigger a valueUnbound() call. The valueUnbound() method is called when the session terminates (either due to an explicit call to invalidate() or a time-out) and when the object is removed (or replaced) from the session (the removeAttribute() method is called). If you stop Tomcat gracefully, e.g. using the showdown script instead of just killing the process with Ctrl-C, it terminates all sessions so the valueUnbound() method is called. If it isn't, it's a Tomcat bug. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pages http://TheJSPBook.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
