Posts

Showing posts with the label Jetty

Embedding Jetty Tutorial

Jetty : Jetty is an open source servlet container, which means it serves Java-based web content such as servlets and JSPs. Jetty is written in Java and its API is available as a set of JARs. Developers can instantiate a Jetty container as an object, instantly adding network and web connectivity to a stand-alone Java app. Jetty has a slogan, "Don't deploy your application in Jetty, deploy Jetty in your application." What this means is that as an alternative to bundling your application as a standard WAR to be deployed in Jetty, Jetty is designed to be a software component that can be instantiated and used in a Java program just like any POJO . Put another way, running Jetty in embedded mode means putting an HTTP module into your application, rather than putting your application into an HTTP server.  To embed a Jetty server, the following steps are typical: Create the server Add/Configure Connectors Add/Configure Handlers Add/Configure...