tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mick Semb Wever <m...@semb.wever.org>
Subject FileDirContext fails to immediately recognise new files
Date Fri, 15 Feb 2008 21:30:09 GMT

My application writes new files out into the container's webapps/ROOT/ 
directory.

But servletContext.getResource(..) returns null if it is called too 
quickly after the file has been created.

This can be debugged all the way down to FileDirContext simply not 
finding the file. Funny when "new File("new-file").exists()" always 
returns true for me immediately after i've created the file. i *am* using 
a FileChannel and calling force(true) to finish with.

Does FileDirContext have some "checkInterval" attribute, similar to how 
JspServlet, that specifies how long it takes before new files are 
recognised?

~mck


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message