Marco Trevisan wrote:
>
> I searched getLastModified in tomcat 3.2.1 source
> and found just one occurrence in
> org.apache.tomcat.protocol.WARConnection.
> This explains to me why tomcat serves static content
> again and again.
>

 In your original message, you mentioned 'static content
served by servlets'. Did you mean content that is served
by a servlet that you wrote, or content that's served by
a servlet container's default file-server servlet?

 For servlets you write yourself, using getLastModified()
(and big buffers) means that serving static content via
a servlet can be practical, depending on just how much load
you're  expecting, etc, etc.

 In the future, the new (1.4) java.nio.* packages mean
that it should be possible to write an HTTP server just
as fast as Apache in pure Java. But we're not quite there
yet...


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to