<server>

  <!-- decision server datasource -->
  <dataSource id="resdatasource" jndiName="jdbc/resdatasource" jdbcDriverRef="postgresql-driver" type="javax.sql.ConnectionPoolDataSource">
        <!--
        <properties
          databaseName='${cloud.services.mydb.connection.name}'
          user='${cloud.services.mydb.connection.user}'
          password='${cloud.services.mydb.connection.password}'
          portNumber='${cloud.services.mydb.connection.port}'
          serverName='${cloud.services.mydb.connection.host}'/>
        -->
        <properties
          databaseName="odmdb"
          user="odmusr"
          password="odmpwd"
          portNumber="5432"
          serverName="dbserver" />
  </dataSource>

  <jdbcDriver id="postgresql-driver"
            javax.sql.ConnectionPoolDataSource="org.postgresql.ds.PGConnectionPoolDataSource"
            javax.sql.XADataSource="org.postgresql.xa.PGXADataSource"
            libraryRef="postgresql-library"/>

  <library id="postgresql-library">
	    <fileset id="postgresql-fileset"  dir="${server.config.dir}/resources" />
  </library>

</server>

<server>

  <!-- decision server datasource -->
  <dataSource id="resdatasource"
     jndiName="jdbc/resdatasource" jdbcDriverRef="postgresql-driver" type="javax.sql.ConnectionPoolDataSource">
        <!--
        <properties
          databaseName='${cloud.services.mydb.connection.name}'
          user='${cloud.services.mydb.connection.user}'
          password='${cloud.services.mydb.connection.password}'
          portNumber='${cloud.services.mydb.connection.port}'
          serverName='${cloud.services.mydb.connection.host}'/>
        -->
        <connectionManager
          maxPoolSize="25"
          minPoolSize="10"
          connectionTimout="10s"
          agedTimeout="30m" />
        <properties
          databaseName="odmdb"
          user="odmusr"
          password="odmpwd"
          portNumber="5432"
          tcpKeepAlive="true"
          serverName="dbserver" />
  </dataSource>

  <jdbcDriver id="postgresql-driver"
            javax.sql.ConnectionPoolDataSource="org.postgresql.ds.PGConnectionPoolDataSource"
            javax.sql.XADataSource="org.postgresql.xa.PGXADataSource"
            libraryRef="postgresql-library"/>

  <library id="postgresql-library">
	    <fileset id="postgresql-fileset"  dir="${server.config.dir}/resources" />
  </library>

</server>

Improve reliability of the runtime part.
Improve reliability of the runtime part.
