tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <qm...@brandxdev.net>
Subject Re: servlet context scope variables
Date Mon, 19 Jul 2004 02:51:02 GMT
On Sun, Jul 18, 2004 at 06:22:37PM -0400, Vladimer Shioshvili wrote:
: if i have an object in the servlet context scope, if tomcat is shutdown
: gracefully would the object get finalized?

Likely, no: finalization happens only on GC, which happens... well,
pretty much when the JVM wants it to.

The point of GC is to reclaim memory. I doubt this would occur on
shutdown, then, because at that point memory is freed by the JVM process
exit.

Is there something you require happen when a context is unloaded?  You
could use a ContextListener for that.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message