Configuration

Role Configuration

<role
  name="org.apache.fulcrum.jetty.JettyService"
  shorthand="JettyService"
  default-class="org.apache.fulcrum.jetty.impl.JettyServiceImpl"
  description="Starts a Jetty container as Avalon service"
/>      
          

Component Configuration

Item Datatype Cardinality Description
configurations Complex [1] Contains a list of Jetty configuration files
configurations\configuration String [1..n] Contains the location of a Jetty configuration file. The configuration is loaded from the file system or from the classpath.
properties Complex [0|1] Contains a list of system properties used for configuring Jetty
properties\property String [0..n] Contains a single system property

Component Configuration Example 1

A simple configuration to start Jetty

<JettyService>
  <configurations>
    <configuration>./src/test/jetty/etc/jetty.xml</configLocation>
  </configurations>
</JettyService>  
        

Component Configuration Example 2

A configuration loading three Jetty configuration files and setting a few system properties to configure Jetty.

<JettyService>
  <configurations>
    <configuration>./src/test/jetty/etc/jetty.xml</configLocation>
    <configuration>./src/test/jetty/etc/jetty-logging.xml</configuration>
    <configuration>./src/test/jetty/etc/jetty-jaas.xml</configuration>    
  </configurations>
  <properties>
    <property name="jetty.home">./src/test/jetty</property>
    <property name="jetty.logs">./target</property>
    <property name="jetty.port">9080</property>
  </properties>  
</JettyService>