I want to deploy an web application without using web server(Tomcat,Jboss etc.) like sonar/hudson does. What presentation framework is suitable for it which has JSP/Struts like capabilites?
views:
31answers:
1
A:
You can use embedded Jetty
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open source and available for commercial use and distribution.
Jetty is used in a wide variety of projects and products. Jetty can be embedded in devices, tools, frameworks, application servers, and clusters.
See this official tutorial about embedding Jetty, the Hello World is as simple as:
public class SimplestServer
{
public static void main(String[] args) throws Exception
{
Server server = new Server(8080);
server.start();
server.join();
}
}
Guido
2010-08-10 06:51:46