Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Watching a directory for new files

Caldarale, Charles R

2007-01-16

Replies:

> From: Tim Funk [mailto:funkman@(protected)]
> Subject: Re: Watching a directory for new files
>
> Various operating system allow hooks to do be notified when
> items in the filesystem change. But since we're using java
> - thats not the case here

Tomcat does have the capability of specifying one or more
<WatchedResource> elements inside a <Context> declaration, and reacting
to changes of the specified file system item. However, that reaction is
to reload the app, which may be a bit more drastic than the OP wanted.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.