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
+
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.)
 
* HTTP server configuration (ports, thread pools, buffers, etc.)
 
* Web container configuration (webapps deployment, security realms, JNDI etc.)
 
* Web container configuration (webapps deployment, security realms, JNDI etc.)
 
* Web application (init parameters, non standard options, 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. 
+
Since Jetty components are simply Plain Old Java Objects (POJOs), you can accomplish this assembly and configuration of components by a variety of techniques:
 +
* In code
 +
* Using Jetty XML
 +
* Embedding Jetty
 +
* Using the Jetty Maven Plugin
 +
* Using Your Favorite Dependency Injection Framework
 +
** Configuring Jetty with Spring
 +
** Configuring Jetty with XBean
 +
* Using Jetty WebApp and Context Deployers
 +
* Using Web XML Descriptors
  
Configuration can be achieved with:
 
  
* [[Jetty/Tutorial/Embedding_Jetty|Embedded Jetty]].
+
""In Code""
* [[Jetty/Reference/jetty.xml_syntax|Jetty XML]] used with [[Jetty/Reference/jetty.xml|jetty.xml]] and [[Jetty/Reference#Configuration_Files|other files]]
+
See the examples in the [http://download.eclipse.org/jetty/stable-7/xref/ Jetty 7 Latest Source XRef].
* [[Jetty/Tutorial/Embedding_Jetty#File_Server_with_spring|Spring XML]].
+
* [[Jetty/Howto/WebXmlDescriptors|web.xml]] descriptors.
+
* [[Jetty/Feature/Jetty_Maven_Plugin|Jetty maven plugin]].
+
  
 +
""Using Jetty XML""
 +
With [http://wiki.eclipse.org/Jetty/Reference/jetty.xml_usage Jetty XML] - dependency injection style XML format.
 +
[[Jetty/Reference/jetty.xml_syntax|Jetty XML]] used with [[Jetty/Reference/jetty.xml|jetty.xml]] and [[Jetty/Reference#Configuration_Files|other files]]
 +
 +
""Embedding Jetty""
 +
[[Jetty/Tutorial/Embedding_Jetty|Embedded Jetty]].
 +
 +
""Using the Jetty Maven Plugin""
 +
[[Jetty/Feature/Jetty_Maven_Plugin|Jetty maven plugin]
 +
 +
""Using Your Favorite Dependency Injection Framework""
 +
 +
"""Configuring Jetty with Spring""" [http://www.springsource.org/ Spring]
 +
[[Jetty/Tutorial/Embedding_Jetty#File_Server_with_spring|Spring XML]]
 +
 +
"""Configuring Jetty with XBean"""
 +
[http://geronimo.apache.org/xbean/index.html XBean].
 +
 +
""Using Jetty WebApp and Context Deployers""
 +
[http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications WebApp and Context Deployers]
 +
 +
""Using Web XML Descriptors"'
 +
[[Jetty/Howto/WebXmlDescriptors|web.xml]] descriptors
 +
 +
""More""
 
For more configuration references, see the [[Jetty/Reference#Configuration|Jetty Configuration Reference]] pages.
 
For more configuration references, see the [[Jetty/Reference#Configuration|Jetty Configuration Reference]] pages.
|steps=
+
 
 +
""Finally"
 +
Because Jetty configuration can be considered as calling setters on a collection of POJOs, regardless of the actual method used, the [http://download.eclipse.org/jetty/stable-7/apidocs/ apidocs] are the ultimate resource for configuration. 
 
}}
 
}}

Revision as of 14:23, 11 August 2010

{{Jetty Howto |introduction= 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.)

Since Jetty components are simply Plain Old Java Objects (POJOs), you can accomplish this assembly and configuration of components by a variety of techniques:

  • In code
  • Using Jetty XML
  • Embedding Jetty
  • Using the Jetty Maven Plugin
  • Using Your Favorite Dependency Injection Framework
    • Configuring Jetty with Spring
    • Configuring Jetty with XBean
  • Using Jetty WebApp and Context Deployers
  • Using Web XML Descriptors


""In Code"" See the examples in the Jetty 7 Latest Source XRef.

""Using Jetty XML"" With Jetty XML - dependency injection style XML format. Jetty XML used with jetty.xml and other files

""Embedding Jetty""

Embedded Jetty.

""Using the Jetty Maven Plugin"" [[Jetty/Feature/Jetty_Maven_Plugin|Jetty maven plugin]

""Using Your Favorite Dependency Injection Framework""

"""Configuring Jetty with Spring""" Spring Spring XML

"""Configuring Jetty with XBean""" XBean.

""Using Jetty WebApp and Context Deployers"" WebApp and Context Deployers

""Using Web XML Descriptors"' web.xml descriptors

""More"" For more configuration references, see the Jetty Configuration Reference pages.

""Finally" 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. }}