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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to