- 1 Introduction
- 2 Configuring Jetty
- 3 More
- 4 Finally
Configuring jetty consists of building a network of connectors and handlers and providing their individual configurations. It is a combination of
- HTTP server configuration (ports, thread pools, buffers, etc.)
- Web container configuration (webapps deployment, security realms, JNDI etc.)
- Web application (init parameters, non standard options, etc.)
See Jetty Architecture for a graphical description of the interactions among connectors and handlers.
Since Jetty components are simply Plain Old Java Objects (POJOs), you can accomplish this assembly and configuration of components by a variety of techniques:
See the examples in the Jetty 7 Latest Source XRef.
Using Jetty XML
Using the Jetty Maven Plugin
Using Your Favorite Dependency Injection Framework: Spring, XBean
Configuring Jetty with Spring
Configuring Jetty with XBean
Using Jetty WebApp and Context Deployers
For more configuration references, see the Jetty Configuration Reference pages.
Because Jetty configuration can be considered as calling setters on a collection of POJOs, regardless of the actual method used, the apidocs are the ultimate resource for configuration.