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

Jetty/Howto/Configure Jetty with XBean

< Jetty‎ | Howto
Revision as of 13:28, 17 August 2010 by Boulay.intalio.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Introduction

Jetty7 supports XBean. This allows you to use a neat, compact XML format to customize Jetty within an XBean configuration file, along with configuring other Geronimo projects like ActiveMQ or ServiceMix.


Configuring Jetty in an XBean Configuration File

The following example shows how to configure Jetty inside an XBean configuration file.

 
 <beans>
   <jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
     <connectors>
       <nioConnector port="8181" />
     </connectors>
 
     <handlers>
       <webAppContext contextPath="/" resourceBase="/tmp/webapp" parentLoaderPriority="false" />
     </handlers>
   </jetty>
 </beans>

Back to the top