<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">



<!-- =============================================================== -->
<!-- Configure the Jetty Server                                      -->
<!-- =============================================================== -->
<!-- $Id: jetty.example,v 1.1.1.1 2003/03/18 15:26:42 ritzmann Exp $ -->
<Configure class="org.mortbay.jetty.Server">

  <!-- =============================================================== -->
  <!-- Configure the Debugger                                          -->
  <!-- =============================================================== -->

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <Set name="Debug" class="org.mortbay.util.Code" type="boolean">false</Set>
    <Set name="Verbose" class="org.mortbay.util.Code" type="int">5</Set>
    <Set name="DebugPatterns" class="org.mortbay.util.Code" type="String"></Set>

  <!-- =============================================================== -->
  <!-- Configure the Debug and Logger                                  -->
  <!-- =============================================================== -->

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Call name="instance" class="org.mortbay.util.Log">
    <Call name="disableLog"/>
    <Call name="add">
      <Arg>
        <New class="org.mortbay.util.OutputStreamLogSink">  
          <Set name="filename"><SystemProperty name="jetty.home" default="."/>/logs/yyyy_mm_dd.jetty.log</Set>
          <Set name="retainDays">90</Set>
          <Set name="append">true</Set>
          <Set name="logLabels">true</Set>
          <Set name="logStackSize">true</Set>
          <Set name="logStackTrace">false</Set>
          <Set name="logOneLine">false</Set>
          <Set name="logTimeZone">EET</Set>
          <Call name="start"/>
        </New>
      </Arg>
    </Call>
  </Call>
 
  <!-- =============================================================== -->
  <!-- Configure the Request Listeners                                 -->
  <!-- =============================================================== -->


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Add and configure a HTTP listener to port 8080                       -->
  <!-- The default port can be changed using: java -Djetty.port=80     -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketListener">
        <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
        <Set name="MinThreads">5</Set>
        <Set name="MaxThreads">100</Set>
        <Set name="MaxIdleTimeMs">30000</Set>
        <Set name="LowResourcePersistTimeMs">5000</Set>
      </New>
    </Arg>
  </Call>


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Add a HTTPS SSL listener on port 8843                           --> 
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->  
  <!-- The default provider is used by this listener.  To specify a    -->
  <!-- specific provider, the keystoreType and keystoreProvideName     -->
  <!-- fields may be set.  For example to use the bouncycastle.org     -->
  <!-- provider with a PKCS12 keystore add the following to the        -->
  <!-- listener configuration:                                         -->
  <!--  <Set name="KeystoreType"> PKCS12</Set>                         -->
  <!--  <Set name="KeystoreProviderName">BC</Set>                      -->
  <!-- you can also load provider if it's not installed:               -->
  <!--  <Set name="KeystoreProviderClass">                             -->
  <!--    org.bouncycastle.jce.provider.BouncyCastleProvider           -->
  <!--  </Set>                                                         -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- UNCOMMENT TO ACTIVATE
  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SunJsseListener">
        <Set name="Port">8443</Set>
        <Set name="MinThreads">5</Set>
        <Set name="MaxThreads">100</Set>
        <Set name="MaxIdleTimeMs">30000</Set>
        <Set name="LowResourcePersistTimeMs">2000</Set>
        <Set name="Keystore"><SystemProperty name="jetty.home" default="."/>/etc/demokeystore</Set>
        <Set name="Password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
    	<Set name="KeyPassword">OBF:1u2u1wml1z7s1z7a1wnl1u2g</Set>
      </New>
    </Arg>
  </Call>
  -->


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Add a AJP13 listener on port 8009                               -->
  <!-- This protocol can be used with mod_jk in apache, IIS etc.       -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- UNCOMMENT TO ACTIVATE
  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.ajp.AJP13Listener">
        <Set name="Port"><SystemProperty name="jetty.ajp.port" default="8009"/></Set>
        <Set name="MinThreads">5</Set>
        <Set name="MaxThreads">20</Set>
        <Set name="MaxIdleTimeMs">0</Set>
        <Set name="confidentialPort">443</Set>
      </New>
    </Arg>
  </Call>
  -->


  <!-- =============================================================== -->
  <!-- Configure the Contexts                                          -->
  <!-- =============================================================== -->


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Add root context web applications.                              -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Call name="addWebApplication">
    <Arg>/ebxmlrr</Arg>
    <Arg>d:/jetty/webapps/ebxmlrr</Arg>
  </Call>


  <!-- =============================================================== -->
  <!-- Configure the Request Log                                       -->
  <!-- =============================================================== -->
  <Set name="RequestLog">
    <New class="org.mortbay.http.NCSARequestLog">
      <Set name="filename"><SystemProperty name="jetty.home" default="."/>/logs/yyyy_mm_dd.request.log</Set>
      <Set name="buffered">true</Set>
      <Set name="retainDays">30</Set>
      <Set name="append">true</Set>
      <Set name="extended">true</Set>
      <Set name="LogTimeZone">EET</Set>
      <Set name="ignorePaths">
        <Array type="String">
          <Item>/jetty/images/*</Item>
          <Item>/demo/images/*</Item>
          <Item>*.css</Item>
        </Array>
      </Set>
    </New>
  </Set>

</Configure>

