> From: Yavuz Kavus [mailto:yavuzka...@gmail.com]
> Subject: Re: Subcontext, filter problem.
>
> DefaultServlet caches content of files, length, content types etc.

I suspect the better performance of the DefaultServlet is related to its use of 
sendfile, not its cache (which persists for only a few seconds).

> i think tomcat should serve resources, under others external
> directories, as a part of main app.

It does, by using the filter mechanism.

> i have serviced document archive(external dir) as a
> sperate context.

Instead of doing that, you could write your own DefaultServlet that subclasses 
the one provided by Tomcat.  I think the only method you would have to override 
is getRelativePath().

Alternatively, you could create a softlink to the external directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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

Reply via email to