Session clean up question

Hi all,

Suppose that we have a session scoped bean in a web application (jsp, servlets, ..) which has several object attributes like java.util.List, ...

Now, how to clean up the session when this bean is no more used ?

Should I simply call session.removeAttribute("beanName") or should I remove all the bean's attributes then remove it ?

thx

[373 byte] By [java_2006a] at [2007-11-26 14:57:53]
# 1
removeAttribute will do the job.
YoGeea at 2007-7-8 8:46:40 > top of Java-index,Java Essentials,Java Programming...