On July 28, 2002 10:32 pm, you wrote:
>     Does anyone know, how to do auto update of classes
> into the JVM? I
> tried to write my own custom class loader, and loaded
> all the classes
> through it, however if I put new updated class, it
> won't reload the
> class again. Have anyone tried this before? Help is
> very much
> appreciated.

This better asked on an advanced-java list; not tomcat specific.

For all the cleverness of Java's dynamic loading mechanism (ClassLoader,
Class.forName, newInstance(), etc.), there is no published API for unloading or 
reloading. 
They just didn't think of it in time, perhaps.

What I think Tomcat and others do is basically to manage the class loader for each 
Context
(which has to be separate from the CL for each other Context for configuration
and security reasons anyway) in such a way that you can delete
it (un-reference it) and assign a new one and reload the classes
for the given Context.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to