On 17/09/18 10:50, Konstantin Kolinko wrote:

<snip/>

> Implementing auto-reloading has a caveat: there is a race condition
> between an editor (that is used to update the file) and Tomcat. It may
> be that Tomcat will try to read an incompletely written file.
> 
> Also using a SAX parser + Digester, it does not check whether the XML
> file is well-formed beforehand. It stops on the first encountered
> error, but side effect from whatever methods it has called thus far
> will be visible.

There is some code that handles a similar case for updated WAR files. We
should be able to make that generic and re-use it here.

Mark

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

Reply via email to