Vitaly Lipovetsky wrote:

> Where can I find an example of source to implement auto-reload class
> after its code has been changed ?

One place you could look would be at the source code for one of the open source
servlet engines that implements auto-reloading, such as Apache JServ
(http://java.apache.org) or Tomcat (http://jakarta.apache.org).  I must warn
you, this functionality is not for the faint hearted -- it involves using a
custom class loader to load the classes subject to reloading, and then throwing
away that class loader (and therefore all the objects it has loaded) when a
change is detected.  You also have to make sure you aren't maintaining any
references to the "old" objects, because you will get ClassCastExceptions
trying to use them later.

>
> --
> My best regards,
> Vitaly Lipovetsky.
> Deputy head of IT division
> First Ukrainian Intl bank
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to