John Smith wrote:
> I am using Tomcat 4.0. I have a number of JSP beans with scope="session".
> The beans a simple and do not contain any circular references. When a
> session times out I have noticed the beans are not cleaned up. I have
> checked this by adding a finalize to the classes and this does not indicate
> them being removed.
>
> Any ideas?
>
> Thanks Jon
Tomcat is made with java and like all java applications memory is freed
by garbage collector and finalize method is called when gc is going to
free object from memory. If you need information about when session is
dying use javax.servlet.http.HttpSessionListener interface.
- Sampsa
--
-------------------------------------------
// Sampsa Sohlman //
// My email can be found on my homepage //
//
http://sampsa.sohlman.com //
-------------------------------------------