tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael <>
Subject Re: Tomcat and java.nio
Date Tue, 07 Jan 2003 15:07:12 GMT
I have heard that it is unpredicatably buggie?  Is that not true?

At 02:40 AM 1/6/03 -0800, you wrote:
>For those who haven't experienced the joys of java.nio yet, I highly
>recomend it.  Not only do you get performance advantages, but it's
>easier to use, too, in my opinion.
>Speaking of which... If I have a servlet which I want to use to send a
>file straight from disk to the browser, right now it seems like the best
>way to do that is to get a FileChannel for the file, read it into a
>buffer, and send that buffer out to the outputstream from
>Request.getOutputStream().  It seems that it would be much nicer and
>more efficient if there were a Request.getChannel() type of method, so I
>could use the highly-efficient FileChannel.transferTo() method.  Using
>that method, the file could be transfered straight from the disk to the
>network, possibly never leaving kernel space and possibly never being
>copied (depending on OS).  Perhaps Tomcat could serve static content as
>quickly as its native C competitors (Apache).  Is this something which
>might appear in future releases of the Servlet API?  I hope so.
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>


This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message