You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Robert Krüger <kr...@signal7.de> on 2004/01/30 16:04:27 UTC

checkContextLastModified() question

Hi,

I'm looking into eliminating (or configuring) the delay between 
modifying my web.xml files and restarting of the context during 
development, which according to Yoav is not configurable. I looked into 
the code. However, I don't quite understand the criterion which is used 
to decide whether a reload should be performed.

starting in line 783 in HostConfig
                         if (newLastModified > (webInfLastModified + 
5000)) {
                             webXmlLastModified.remove(contextName);
                             restartContext(context);
                         } else {
                             webXmlLastModified.put
                                 (contextName, new Long(newLastModified));
                         }

I don't understand the first comparison. The lastModified of web.xml 
must be at least 5 seconds after the lastModified of the WEB-INF 
directory? I'm sure I do not understand it correctly. Could someone 
please shed some light on this?

Thanks in advance,

Robert








-- 
________________________
Robert Krüger
Signal7 GmbH
Brüder Knauss Str. 79
64285 Darmstadt
Germany


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org