On 7 Feb 2002, Gary Lawrence Murphy wrote:
> Date: 07 Feb 2002 14:12:25 -0500
> From: Gary Lawrence Murphy <[EMAIL PROTECTED]>
> To: Craig R. McClanahan <[EMAIL PROTECTED]>
> Cc: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Can a servlet exit?
>
> >>>>> "C" == Craig R McClanahan <[EMAIL PROTECTED]> writes:
>
> C> The only choice (and the one that Tomcat implements when you
> C> reload a webapp) is to shut down the application, throw away
> C> its class loader, and load things up again.
>
> Short of upgrading to Tomcat 4 to get the Container Manager, this
> sounds like exactly the process we'd need; where can I learn more
> about this process?
>
The best thing would be to look at the Tomcat source code. Both 3.3 and
4.x support web application reloading, although they differ in the
implementation details. For Tomcat 4, see the reload() method of class
org.apache.catalina.core.StandardContext.
Note that, if you are thinking about building your own class loader
*inside* your application so that you can do this, you should be aware
that servlet containers running under a security manager (which includes
all J2EE servers) are unlikely to allow you do do this.
> --
> Gary Lawrence Murphy <[EMAIL PROTECTED]> TeleDynamics Communications Inc
> Business Innovations Through Open Source Systems: http://www.teledyn.com
> "Computers are useless. They can only give you answers."(Pablo Picasso)
>
>
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>