Jetty

A servlet engine and HTTP server where most Berlioz applications are deployed.

Although Berlioz does not depends on Jetty, it has been extensively tested on Jetty.

We recommend that you use Jetty 9 . An alternative to Jetty is Apache Tomcat .

jetty-env.xml

Jetty env  is an optional configuration file located in the /META-INF folder for an individual application deployed on Jetty to set up the Web app environment.

Berlioz base includes a sample jetty-env file. Although it is entirely optional, it allows applications to start up faster by telling Jetty which files to scan and which ones to ignore. It is particularly useful when using kickstart.

The sample jetty-env.xml below can be used to tell Jetty to only scan the kickstart library instead of all the libraries included in the app.

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" 
    "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
 
  <Call name="setAttribute">
    <Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>
    <Arg>.*/pso-berlioz-kickstart-[^/]*\.jar$</Arg>
  </Call>

</Configure>

Created on , last edited on