On Mon, 9 Dec 2002, Luiz Ricardo wrote:

> Date: Mon, 9 Dec 2002 14:14:40 -0200
> From: Luiz Ricardo <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat-Users List <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to