How do I setup Tomcat ro refresh a directory faster than the default 5 seconds?

View: New views
1 Messages — Rating Filter:   Alert me  

How do I setup Tomcat ro refresh a directory faster than the default 5 seconds?

by ed2003 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I tried adding variations of the following to server.xml but it still takes 5
> seconds for a newly modified file to appear.  Anybody know what I am doing
> wrong? (If the file is new, it appears within a second or so.  But if it exists and is rewritten, it takes 5 sec)

>
> <Context path="/usr/share/tomcat5.5-webapps/ROOT/status"
>     cacheTTL="1" >
>    <WatchedResource>status/picture.png</WatchedResource>
>  </Context>
>