com.sun.httpserver
Matthew Hall
mhall at mhcomputing.net
Tue Mar 28 16:54:11 UTC 2017
On Tue, Mar 28, 2017 at 12:26:22PM +0100, ashtonhogan at ymail.com wrote:
> Hi all
>
> I was looking through the archives but did not find any answers to these questions so I figured I'd try here, hopefully this helps someone else as well.
>
> I've done some testing on the httpserver and come across some things:
>
> 1. No support for websockets (ws) or secure websockets (wss) - will this be in a future release?
>
> 2. When starting the server a number of threads are spawned regardless of whether you specify an executor or not. Was this the intention? If so then why does it spawn multiple threads when it could just spawn one for listening that places all HttpExchange instances into a BlockingQueue or something for the developer to use in a single or multithreaded environment?
>
> Thanks & Regards
> Ashton
Your email system mangled one of your reply emails. If you want a really great
Java embedded web server I recommend using this one instead:
https://grizzly.java.net/
It has way more features than the ancient com.sun.httpserver, and it's used in
Glassfish and some other servlet containers.
Matthew.
More information about the net-dev
mailing list