Blowing away objects that have been stored in the session context

2003-10-05 Thread Adrian Beech
G'day all, Does Tomcat release all the resources used by an object if the object has been stored in the session context and a call to session.removeAttribute(objName) is made? I'd like to blow away several beans that are used throughout the processing of a transaction once the confirmation page

Re: Blowing away objects that have been stored in the session context

2003-10-05 Thread Tim Funk
No. If it did it would be magical. All objects follow the garbage collection rules. So session.removeAttribute(mybean) will remove all known references that the tomcat internals point to the reference pointing to mybean. So for mybean to be garbage collected - make sure you have no objects

Re: Blowing away objects that have been stored in the session context

2003-10-05 Thread Nikola Milutinovic
Does Tomcat release all the resources used by an object if the object has been stored in the session context and a call to session.removeAttribute(objName) is made? I'd like to blow away several beans that are used throughout the processing of a transaction once the confirmation page is