Phil Lewis wrote:

> I have just had the strane experience that when I deleted my servlet from
> from the servers area, I could still invoke it from a browser.
>

The first time you access a particular servlet, it is loaded into the JVM of
the servlet engine.  Once that is done, the class file it came from is no
longer accessed.  So, as long as the server is not restarted, the servlet will
still be in memory.  On servlet engines that support automatic reloading when
class files change, this statement is not quite accurate, but the JSDK 2.1 (and
JSWDK 1.0) servlet engines do not support this feature.

This also explains why you need to restart the JSDK server when you recompile a
servlet, to make the changes visible.  In the mean time, it is just using the
old copy.

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