This content has been marked as final.
Show 2 replies
-
1. Re: Help migrating servlet from JBossWEB to Undertow
swd847 Mar 11, 2015 5:35 PM (in response to jonathandfields)Try casting the ServletOutputStream to io.undertow.io.BufferWritableOutputStream (or io.undertow.servlet.spec.ServletOutputStreamImpl) and then use the transferFrom(FileChannel source) method.
-
2. Re: Help migrating servlet from JBossWEB to Undertow
jonathandfields Mar 12, 2015 4:11 PM (in response to swd847)Thanks for the reply. I tried this and it appears to work. Easy drop-in replacement for the old Tomcat/APR/sendfile. I don't know how the performance compares but I would guess similar assuming they use sendfile under the hood. Thanks!