Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Configure Jetty"

< Jetty‎ | Howto
Line 1: Line 1:
 
{{Jetty Howto
 
{{Jetty Howto
 
|introduction=
 
|introduction=
Jetty configuration is a combination of configuration of the HTTP server, the web container and the web application.
+
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 [http://download.eclipse.org/jetty/stable-7/apidocs/ apidocs] are the ultimate resource for configuration. The actual methods of configuration include:
  
Jetty itself is a collection of Plain Old Java Objects (POJOs) and can be configured in several ways:
 
 
* Calling the API from a java program (see the [[Jetty/Tutorial/Embedding_Jetty|Embedding Jetty Tutorial]]).
 
* Calling the API from a java program (see the [[Jetty/Tutorial/Embedding_Jetty|Embedding Jetty Tutorial]]).
* Calling the API from jetty XML (see [[Jetty/Reference/jetty.xml_syntax|XML syntax reference]] and [[Jetty/Reference/jetty.xml|jetty.xml reference]]).
+
* Calling the API from XML, either using
* Assemble POJOs from Spring (see the [[Jetty/Tutorial/Embedding_Jetty#File_Server_with_spring|File Server with spring example]]).
+
** Jetty XML (see [[Jetty/Reference/jetty.xml_syntax|XML syntax reference],
 +
[[Jetty/Reference/jetty.xml|jetty.xml reference]])
 +
** Spring XML (see the [[Jetty/Tutorial/Embedding_Jetty#File_Server_with_spring|File Server with spring example]])
 +
* Using servlet standard [[Jetty/Howto/WebXmlDescriptors|web.xml]] descriptors.
 
* Use the [[Jetty/Feature/Jetty_Maven_Plugin|jetty-maven-plugin]]
 
* Use the [[Jetty/Feature/Jetty_Maven_Plugin|jetty-maven-plugin]]
  
Web applications (aka WARs, webapps and contexts) can be configured either with standard based web.xml, annotations, by calling the jetty API directly (as above) or with a combination of approaches.
+
For more configuration detail, see the [[Jetty/Reference#Configuration|Jetty Configuration Reference]] pages.
 
+
See the [[Jetty/Reference#Configuration|Jetty Configuration Reference]] pages.
+
 
+
|steps=
+
 
+
 
+
 
}}
 
}}

Revision as of 23:54, 7 February 2010

{{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)

For more configuration detail, see the Jetty Configuration Reference pages. }}

Back to the top