tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Reloading classes in shared dir
Date Wed, 11 Dec 2002 01:33:41 GMT


On Mon, 9 Dec 2002, Luiz Ricardo wrote:

> Date: Mon, 9 Dec 2002 14:14:40 -0200
> From: Luiz Ricardo <luizricardo@itx.com.br>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat-Users List <tomcat-user@jakarta.apache.org>
> Subject: Reloading classes in shared dir
>
> Hi everybody,
>
> I would like to know if there is any way to configure TomCat to reload the
> classes installed in CATALINA_HOME/shared.
>

No, it's not -- and it basically cannot be.  :-(

Java does not provide any mechanisms for replacing classes in an existing
class loader.  The only thing you can do is throw away the entire class
loader itself, and create a new one (which is how Tomcat handles
application reloads).

Because the shared (and common) class loaders are parents to the webapp
class loaders, that would mean throwing away all of the current webapps
and starting over.  Essentially, you'd be doing exactly what stopping and
starting Tomcat already does.

> Luiz Ricardo

Craig



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


Mime
View raw message