<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/* Copyright 2002-2004 Apache Software Foundation
 *
 * Licensed 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.
 */
-->
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

    <display-name>OJB Lock-Server</display-name>
  <description>
     The OJB locking server servlet
  </description>

  <servlet>
    <servlet-name>lockserver</servlet-name>
        <servlet-class>org.apache.ojb.broker.locking.LockManagerServlet</servlet-class>
    <init-param>
            <param-name>lockManager</param-name>
            <param-value>org.apache.ojb.broker.locking.LockManagerInMemoryImpl</param-value>
            <!--<param-value>org.apache.ojb.broker.locking.LockManagerCommonsImpl</param-value>-->
    </init-param>
        <init-param>
            <param-name>lockTimeout</param-name>
            <!-- set lock timeout to 2 minutes (setting in [ms]) -->
            <param-value>120000</param-value>
        </init-param>
        <init-param>
            <!-- set block timeout to 1 sec (setting in [ms], if supported by the Impl.) -->
            <param-name>blockTimeout</param-name>
            <param-value>1000</param-value>
        </init-param>

    <!--load-on-startup>1</load-on-startup-->
  </servlet>

  <!-- The mapping for the webdav servlet -->
  <servlet-mapping>
    <servlet-name>lockserver</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>

  <!-- Establish the default list of welcome files -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
  </welcome-file-list>
</web-app>
