<Server port="8005" shutdown="SHUTDOWN" debug="0">

  <!-- Global JNDI resources -->
  <GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>

  </GlobalNamingResources>

  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Catalina">

    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <!-- IS_HTTP -->
    <Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" acceptCount="100"
               debug="0" connectionTimeout="20000" 
               disableUploadTimeout="true" />
    <!-- FIN_IS_HTTP -->

    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->

    <Connector port="8443" 
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" debug="0" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" 
	       keystoreFile="C:/esupdev/pcinterreg-01.keystore" keystorePass="yyyyyy"
	       />

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <!-- IS_JK
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3" />
    FIN_IS_JK -->

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">


        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>
        -->

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
            timestamp="true"/>

        <!-- Tomcat Root Context -->
        <!--
          <Context path="" docBase="ROOT" debug="0">
        -->

<Context path="/uPortal" docBase="C:/esupdev/esupdev-2.4/webapps/uPortal" crossContext="true" reloadable="false">
          <Resource name="jdbc/PortalDb" auth="Container" type="javax.sql.DataSource"/>
          <Resource name="jdbc/PersonDb" auth="Container" type="javax.sql.DataSource"/>
	<Resource name="jdbc/CStockageDb" auth="Container" type="javax.sql.DataSource"/>
	
	
          <ResourceParams name="jdbc/PortalDb">
            <parameter>
              <name>factory</name>
              <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
            </parameter>

            <!-- Maximum number of dB connections in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxActive</name>
              <value>100</value>
            </parameter>

            <!-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxIdle</name>
              <value>30</value>
            </parameter>

            <!-- Maximum time to wait for a dB connection to become available
                 in ms, in this example 10 seconds. An Exception is thrown if
                 this timeout is exceeded.  Set to -1 to wait indefinitely.
                 -->
            <parameter>
              <name>maxWait</name>
              <value>10000</value>
            </parameter>

            <!-- Portal dB username and password for dB connections  -->
            <parameter>
              <name>username</name>
              <value></value>
            </parameter>
            <parameter>
              <name>password</name>
              <value></value>
            </parameter>

            <!-- Class name JDBC driver -->
            <parameter>
              <name>driverClassName</name>
              <value>com.mysql.jdbc.Driver</value>
            </parameter>

            <!-- The JDBC connection url for connecting to your Portal dB.-->
            <parameter>
              <name>url</name>
              <value>jdbc:mysql://localhost:3306/esup_06_04_05</value>
            </parameter>
        
          </ResourceParams>

          <ResourceParams name="jdbc/PersonDb">
            <parameter>
              <name>factory</name>
              <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
            </parameter>

            <!-- Maximum number of dB connections in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxActive</name>
              <value>100</value>
            </parameter>

            <!-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxIdle</name>
              <value>30</value>
            </parameter>

            <!-- Maximum time to wait for a dB connection to become available
                 in ms, in this example 10 seconds. An Exception is thrown if
                 this timeout is exceeded.  Set to -1 to wait indefinitely.
                 -->
            <parameter>
              <name>maxWait</name>
              <value>10000</value>
            </parameter>

            <!-- Person dB username and password for dB connections  -->
            <parameter>
              <name>username</name>
              <value></value>
            </parameter>
            <parameter>
              <name>password</name>
              <value></value>
            </parameter>

            <!-- Class name for JDBC driver -->
            <parameter>
              <name>driverClassName</name>
              <value>com.mysql.jdbc.Driver</value>
            </parameter>

            <!-- The JDBC connection url for connecting to your Person dB.-->
            <parameter>
              <name>url</name>
              <value>jdbc:mysql://localhost:3306/esup_06_04_05</value>
            </parameter>
        
          </ResourceParams>






	<!-- The pool for CStockage db -->
	 <ResourceParams name="jdbc/CStockageDb">
            <parameter>
              <name>factory</name>
              <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
            </parameter>

            <!-- Maximum number of dB connections in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxActive</name>
              <value>100</value>
            </parameter>

            <!-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit.-->
            <parameter>
              <name>maxIdle</name>
              <value>30</value>
            </parameter>

            <!-- Maximum time to wait for a dB connection to become available
                 in ms, in this example 10 seconds. An Exception is thrown if
                 this timeout is exceeded.  Set to -1 to wait indefinitely.
                 -->
            <parameter>
              <name>maxWait</name>
              <value>10000</value>
            </parameter>

            <!-- Person dB username and password for dB connections  -->
            <parameter>
              <name>username</name>
              <value>mon_username</value>
            </parameter>
            <parameter>
              <name>password</name>
              <value>mon_password</value>
            </parameter>

            <!-- Class name for JDBC driver -->
            <parameter>
              <name>driverClassName</name>
              <value>org.postgresql.Driver</value>
            </parameter>

            <!-- The JDBC connection url for connecting to your Person dB.-->
            <parameter>
              <name>url</name>
              <value>jdbc:postgresql://localhost:5432/cstockage</value>
            </parameter>
        
          </ResourceParams>
	  

          <!-- Disables restart persistence of sessions -->
          <Manager pathname=""/>

</Context>


<!-- ESUP_NO_PORTLETS
         <Context path="/GooglePortlet" docBase="C:/esupdev/esupdev-2.4/webapps/GooglePortlet"/>
         <Context path="/RssPortlet" docBase="C:/esupdev/esupdev-2.4/webapps/RssPortlet"/>
         <Context path="/testsuite" docBase="C:/esupdev/esupdev-2.4/webapps/testsuite"/>
         <Context path="/proxyportlet" docBase="C:/esupdev/esupdev-2.4/webapps/proxyportlet" crossContext="true">
              <Manager pathname=""/>
         </Context>
FIN_ESUP_NO_PORTLETS -->

      </Host>

    </Engine>

  </Service>

</Server>
