home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <object class="org.apache.commons.dbcp.PoolableConnectionFactory" xmlns="http://apache.org/xml/xmlns/jakarta/commons/jocl">
-
- <!--
- The first argument to PoolableConnectionFactory is a ConnectionFactory.
- We'll use a DriverManagerConnectionFactory, passing in the appropriate
- connect string for the underlying driver.
- -->
- <object class="org.apache.commons.dbcp.DriverManagerConnectionFactory">
-
- <string value="jdbc:britannica:axioncd:oecdb:${ARTICLE}/data/oecx"/>
-
- <object class="java.util.Properties" null="true"/>
- </object>
-
- <!--
- The next argument is the pool to use.
- -->
- <object class="org.apache.commons.pool.impl.GenericObjectPool">
- <object class="org.apache.commons.pool.PoolableObjectFactory"
- null="true"/>
- <int value="3"/> <!-- Max active -->
- <byte value="2"/> <!-- Exhausted action (2=grow) -->
- <long value="0"/> <!-- Max wait -->
- <int value="0"/> <!-- Max idle -->
- <boolean value="true"/> <!-- Test on borrow -->
- <boolean value="false"/> <!-- Test on return -->
- </object>
-
- <!--
- The next argument is the KeyedObjectPoolFactory to use to create
- pools for storing PreparedStatements. This functionality is
- optional, we'll just use null.
- -->
- <object class="org.apache.commons.pool.impl.StackKeyedObjectPoolFactory">
- <int value="3"/>
- </object>
-
- <!--
- The next argument is the query to use to validate that a Connection is
- still up and running. It should return at least one row.
- This functionality is optional. We'll just set it to null.
- -->
- <string value="CHECKFILESTATE"/>
-
- <!-- The default "read only" value for Connections. -->
- <boolean value="true"/>
-
- <!-- The default "auto commit" value for Connections. -->
- <boolean value="false"/>
-
- </object>
-