You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jacob Hookom <ho...@uwec.edu> on 2002/07/22 10:03:41 UTC

Changes to File System

How does tomcat handle monitoring of changes to the file system?

IE, if the JSP is changed and requires re-compiling, or a class is
modified

Best Regards,
Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire 



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Changes to File System

Posted by Jacob Hookom <ho...@uwec.edu>.
Thanks!

-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org] 
Sent: Monday, July 22, 2002 10:29 AM
To: Tomcat Users List
Subject: Re: Changes to File System



On Mon, 22 Jul 2002, Jacob Hookom wrote:

> Date: Mon, 22 Jul 2002 03:03:41 -0500
> From: Jacob Hookom <ho...@uwec.edu>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: Changes to File System
>
> How does tomcat handle monitoring of changes to the file system?
>
> IE, if the JSP is changed and requires re-compiling, or a class is
> modified
>

The general tool used is to call File.lastModified() on the
corresponding
file.  For JSP pages, this is done on every request.  For classes (in
WEB-INF/classes and WEB-INF/lib only) it is done in a background thread
that is started for webapps that have autoload support turned on.

> Best Regards,
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>

Craig

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Changes to File System

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 22 Jul 2002, Jacob Hookom wrote:

> Date: Mon, 22 Jul 2002 03:03:41 -0500
> From: Jacob Hookom <ho...@uwec.edu>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: Changes to File System
>
> How does tomcat handle monitoring of changes to the file system?
>
> IE, if the JSP is changed and requires re-compiling, or a class is
> modified
>

The general tool used is to call File.lastModified() on the corresponding
file.  For JSP pages, this is done on every request.  For classes (in
WEB-INF/classes and WEB-INF/lib only) it is done in a background thread
that is started for webapps that have autoload support turned on.

> Best Regards,
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>