<?xml version="1.0" encoding="UTF-8"?>
<!--Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.-->
<!--$Rev: 797848 $ $Date: 2009-07-25 15:06:43 -0700 (Sat, 25 Jul 2009) $-->
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
  <!--david jencks is not convinced that these 2 gbeans should be in this
         plan and thinks they might belong in the console plan.  Aaron thinks
         they definitely don't belong in the console plan, but could go into
         a management layer plan.-->
  <environment>
    <moduleId>
      <groupId>org.apache.geronimo.configs</groupId>
      <artifactId>jetty7</artifactId>
      <version>2.2</version>
      <type>car</type>
    </moduleId>
    <dependencies>
      <dependency>
        <groupId>org.apache.geronimo.configs</groupId>
        <artifactId>j2ee-server</artifactId>
        <version>2.2</version>
        <type>car</type>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.framework</groupId>
        <artifactId>server-security-config</artifactId>
        <version>2.2</version>
        <type>car</type>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.modules</groupId>
        <artifactId>geronimo-jetty7</artifactId>
        <version>2.2</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.configs</groupId>
        <artifactId>transaction</artifactId>
        <version>2.2</version>
        <type>car</type>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.configs</groupId>
        <artifactId>webservices-common</artifactId>
        <version>2.2</version>
        <type>car</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-ajp</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-jaspi</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-security</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-webapp</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-xml</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-util</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-servlet</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-server</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-continuation</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-http</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-io</artifactId>
        <version>7.0.0.v20091005</version>
        <type>jar</type>
      </dependency>
    </dependencies>
    <hidden-classes/>
    <non-overridable-classes/>
    <private-classes/>
  </environment>
  <gbean name="JettyWebManager" class="org.apache.geronimo.jetty7.JettyManagerImpl"/>
  <gbean name="JettyAccessLogManager" class="org.apache.geronimo.jetty7.requestlog.JettyLogManagerImpl">
    <references name="LogGBeans">
      <pattern>
        <!--This is lame and should be replaced by an interface reference-->
        <name>JettyRequestLog</name>
      </pattern>
    </references>
    <reference name="ServerInfo">
      <name>ServerInfo</name>
    </reference>
  </gbean>
  <!--default WAR container using Jetty-->
  <gbean name="JettyWebContainer" class="org.apache.geronimo.jetty7.JettyContainerImpl">
    <attribute name="jettyHome">var/jetty</attribute>
    <reference name="WebManager">
      <name>JettyWebManager</name>
    </reference>
    <reference name="ServerInfo">
      <name>ServerInfo</name>
    </reference>
  </gbean>
  <gbean name="JettyRequestLog" class="org.apache.geronimo.jetty7.requestlog.NCSARequestLog">
    <reference name="JettyContainer">
      <name>JettyWebContainer</name>
    </reference>
    <reference name="ServerInfo">
      <name>ServerInfo</name>
    </reference>
    <attribute name="filename">var/log/jetty_yyyy_mm_dd.log</attribute>
    <attribute name="logDateFormat">dd/MMM/yyyy:HH:mm:ss ZZZ</attribute>
    <attribute name="logTimeZone">GMT</attribute>
  </gbean>
  <gbean name="JettyWebConnector" class="org.apache.geronimo.jetty7.connector.HTTPSelectChannelConnector">
    <attribute name="host">0.0.0.0</attribute>
    <attribute name="port">8080</attribute>
    <attribute name="headerBufferSizeBytes">8192</attribute>
    <reference name="JettyContainer">
      <name>JettyWebContainer</name>
    </reference>
    <reference name="ThreadPool">
      <name>DefaultThreadPool</name>
    </reference>
    <attribute name="maxThreads">50</attribute>
  </gbean>
  <gbean name="JettyAJP13Connector" class="org.apache.geronimo.jetty7.connector.AJP13Connector">
    <attribute name="host">0.0.0.0</attribute>
    <attribute name="port">8019</attribute>
    <reference name="JettyContainer">
      <name>JettyWebContainer</name>
    </reference>
    <reference name="ThreadPool">
      <name>DefaultThreadPool</name>
    </reference>
    <attribute name="maxThreads">50</attribute>
  </gbean>
  <!--DONT USE THIS ONE-->
  <!--<gbean name="JettySSLConnector" class="org.apache.geronimo.jetty7.connector.HTTPSSocketConnector">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8443</attribute>
            <attribute name="keyStore">geronimo-default</attribute>
            <attribute name="keyAlias">geronimo</attribute>
            <attribute name="trustStore">geronimo-default</attribute>
            <attribute name="clientAuthRequired">false</attribute>
            <attribute name="algorithm">Default</attribute>
            <attribute name="secureProtocol">TLS</attribute>
            <attribute name="maxThreads">50</attribute>
            <reference name="JettyContainer">
                <name>JettyWebContainer</name>
            </reference>
            <reference name="ThreadPool">
                <name>DefaultThreadPool</name>
            </reference>
            <reference name="KeystoreManager">
                <name>KeystoreManager</name>
            </reference>
        </gbean>-->
  <!--USE THIS ONE-->
  <gbean name="JettySSLConnector" class="org.apache.geronimo.jetty7.connector.HTTPSSelectChannelConnector">
    <attribute name="host">0.0.0.0</attribute>
    <attribute name="port">8443</attribute>
    <attribute name="headerBufferSizeBytes">8192</attribute>
    <attribute name="keyStore">geronimo-default</attribute>
    <attribute name="keyAlias">geronimo</attribute>
    <attribute name="trustStore">geronimo-default</attribute>
    <attribute name="clientAuthRequired">false</attribute>
    <attribute name="algorithm">Default</attribute>
    <attribute name="secureProtocol">TLS</attribute>
    <attribute name="maxThreads">50</attribute>
    <reference name="JettyContainer">
      <name>JettyWebContainer</name>
    </reference>
    <reference name="ThreadPool">
      <name>DefaultThreadPool</name>
    </reference>
    <reference name="KeystoreManager">
      <name>KeystoreManager</name>
    </reference>
  </gbean>
</module>