On Mon, 27 Jan 2003, Glenn Nielsen wrote:

> Date: Mon, 27 Jan 2003 11:11:29 -0600
> From: Glenn Nielsen <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: Tomcat Developers List <[EMAIL PROTECTED]>
> Subject: Re: Cleanup of javax.servlet.context.tempdir
>
> As of Tomcat 4.1.19 the manager will remove the tempdir when you
> /remove a web application.
>
> In your case I would add some code to a servlet init method to cleanup
> the old temporary files. Then configure the servlet to load on startup.
>

Or the contextDestroyed() method of a ServletContextListener.

> I would not want the manager to muck around with the tempdir of an
> installed web application.  There are many things that can get saved
> in the tempdir.  JSP .java and .class files, serialized session data,
> etc.  I think it is best if the code which generates temp files in the
> tempdir manages its own files.
>

+1.

> Regards,
>
> Glenn
>

Craig



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

Reply via email to