<?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

    <web-app>
        <servlet>
            <servlet-name>controller</servlet-name>
            <servlet-class>org.openswing.swing.server.Controller</servlet-class>
	    <init-param>
	      <param-name>actionClasses</param-name>
	      <param-value>demo5.server.DemoActionClasses</param-value>
	    </init-param>
	    <init-param>
	      <param-name>connectionSource</param-name>
	      <param-value>org.openswing.swing.server.PoolerConnectionSource</param-value>
	    </init-param>
	    <init-param>
	      <param-name>resourceFactory</param-name>
	      <param-value>demo5.server.XMLResources</param-value>
	    </init-param>
	    <init-param>
	      <param-name>loginAction</param-name>
	      <param-value>org.openswing.swing.server.PoolerConnectionSource</param-value>
	    </init-param>
	    <init-param>
	      <param-name>sessionIdGenerator</param-name>
	      <param-value>org.openswing.swing.server.DefaultSessionIdGenerator</param-value>
	    </init-param>
	    <init-param>
	      <param-name>logger</param-name>
	      <param-value>org.openswing.swing.logger.server.ConsoleLogger</param-value>
	    </init-param>
	    <init-param>
	      <param-name>controllerCallbacks</param-name>
	      <param-value>demo5.server.DemoControllerCallbacks</param-value>
	    </init-param>
	    <init-param>
	      <param-name>objectsReceiver</param-name>
	      <param-value>org.openswing.swing.util.server.HessianObjectReceiver</param-value>
	    </init-param>
	    
	    <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
           <servlet-name>JnlpDownloadServlet</servlet-name>
           <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
        </servlet>
        
        <servlet-mapping>
            <servlet-name>controller</servlet-name>
            <url-pattern>controller</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <url-pattern>/demo5.jnlp</url-pattern>
        </servlet-mapping>
    </web-app>
