Your bean can implement the HttpSessionBindingListener interface. This
listener is notified when the object is bound to or unbound from a session.
Unfortunately, closing the browser window does not notify the session layer,
but it will later when the user's session times out. You may also call
session.invalidate() from a JSP page, which then fires the event...
Dave Deniman
----- Original Message -----
From: "M. Simms" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 8:38 AM
Subject: FW: finalize method in bean
: To: [EMAIL PROTECTED]
: cc:
: Subject: finalize method in bean
:
:
: Hi,
: Can i have a finalize method in a bean so that when the user
: closes the browser window whatever
: resources the bean is utilizing can be freed
: regards
: Merrill
:
:
===========================================================================
:
: 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://java.sun.com/products/jsp/faq.html
: http://www.esperanto.org.nz/jsp/jspfaq.html
: http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
: http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
:
:
===========================================================================
: 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://java.sun.com/products/jsp/faq.html
: http://www.esperanto.org.nz/jsp/jspfaq.html
: http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
: http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
:
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets