tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
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

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



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message