Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Jetty/Howto/Configure Jetty
{{Jetty Howto |introduction= Jetty configuration 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.)
All Jetty configuration can be considered as calling setters on a collection of Plain Old Java Objects (POJOs), so that regardless of the actual method used, the apidocs are the ultimate resource for configuration. The actual methods of configuration include:
- Calling the API from a java program (see the Embedding Jetty Tutorial).
- Calling the API from XML, either using
- Jetty XML (see [[Jetty/Reference/jetty.xml_syntax|XML syntax reference], jetty.xml reference)
- Spring XML (see the File Server with spring example)
- Using servlet standard web.xml descriptors.
- Use the jetty-maven-plugin
For more configuration detail, see the Jetty Configuration Reference pages. }}