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 with XBean"

< Jetty‎ | Howto
m
m
 
Line 7: Line 7:
 
The following example shows how to configure Jetty inside an XBean configuration file.
 
The following example shows how to configure Jetty inside an XBean configuration file.
  
<div class="code panel" style="border-width: 1px"><div class="codeContent panelContent">
+
<source lang="xml">  
 
+
+
 
  <beans>
 
  <beans>
 
   <jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
 
   <jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
Line 21: Line 19:
 
   </jetty>
 
   </jetty>
 
  </beans>
 
  </beans>
 +
</source>
  
</div>
+
<!-- ===Links===
 
+
===Links===
+
  
 
There is also an auto-generated [http://jetty.mortbay.org/jetty.xsd XSD] and [http://jetty.mortbay.org/jetty.xsd.html HTML reference] for the XML configuration language
 
There is also an auto-generated [http://jetty.mortbay.org/jetty.xsd XSD] and [http://jetty.mortbay.org/jetty.xsd.html HTML reference] for the XML configuration language
  
[http://xbean.org/Editing+Custom+XML More information] on configuring services using XBean XML to provide [http://xbean.org/Custom+XML Custom XML]
+
[http://xbean.org/Editing+Custom+XML More information] on configuring services using XBean XML to provide [http://xbean.org/Custom+XML Custom XML] -->
 
}}
 
}}

Latest revision as of 14:28, 17 August 2010



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