There seem to be a few extremes with the support of embedded Java HTTP servers. I have seen minimalist approaches like NanoHTTPD, and using the com.sun.net.httpserver package to attempt to embed Jetty and Tomcat. The ideal embeddable HTTP server will be implemented in such a way that it can be launched through Executor and get support for Servlet / JSP, but otherwise you should allow the use of its parent's registrar and allow the integration of its JMX intercepts.
Likewise, it should also be fairly modular, where you may be able to NOT include certain functionality. Has anyone come across any Java HTTP servers with this feature?
source
share