AFAIK no servlet runners explicitly unload your servlets.

The most common (only?) behaviour for a servlet runner is:
        when a servlet is invoked the servlet runner checks the servlet's class
file to see if it has changed since the servlet was loaded. If the class
file was changed the servlet runner creates a new servlet class loader and
the new class loader loads the new servlet.

The old servlet instance is potentially still loaded waiting to finish up a
thread or whatever. The old servlet instances may be garbage collected when
nothing is holding a reference to them anymore (e.g. at least all threads
are complete etc. ) Of course given how garbage collection works the old
servlets may never be garbage collected until you servlet runner wants to
shutdown.

HTH

***********************************************************
Brett Knights                             626-432-5767 work
[EMAIL PROTECTED]                 626-355-1017 home
***********************************************************


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Steve
> Nguyen
> Sent: Wednesday, May 26, 1999 7:49 AM
> To: Java Apache Users
> Subject: Re: How to unload servlet ?
>
>
> Depends on the servlet runner you are running, and whether
> there is any
> "thread" running or not.
>
> Hey, this is also tricky: does JServ really reload the
> servlet when there is
> a thread of that servlet running ? I got some problem with ServletExec
> before that it does not really reload the thread.
>
> Steve
>
>     -----Original Message-----
>     From: Donatas Ciuksys <[EMAIL PROTECTED]>
>     To: [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
>     Date: Thursday, May 27, 1999 12:53 AM
>     Subject: How to unload servlet ?
>
>
>     Hello everybody,
>     does anybody know how to unload once loaded servlet ?
>     Thanks in advance.
>
>     Donatas Ciuksys
>
>
>
> -- --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]
>
>



-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to