craigmcc 02/03/16 12:32:31
Modified: webapps/tomcat-docs jndi-resources-howto.xml
webapps/tomcat-docs/config context.xml
Log:
Document the configuration properties for the COMMONS-DBCP-based data source
factory in the HEAD branch.
Revision Changes Path
1.13 +36 -1 jakarta-tomcat-4.0/webapps/tomcat-docs/jndi-resources-howto.xml
Index: jndi-resources-howto.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/jndi-resources-howto.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- jndi-resources-howto.xml 13 Mar 2002 04:13:34 -0000 1.12
+++ jndi-resources-howto.xml 16 Mar 2002 20:32:31 -0000 1.13
@@ -515,9 +515,17 @@
<value>org.hsql.jdbcDriver</value>
</parameter>
<parameter>
- <name>driverName</name>
+ <name>url</name>
<value>jdbc:HypersonicSQL:database</value>
</parameter>
+ <parameter>
+ <name>maxActive</name>
+ <value>8</value>
+ </parameter>
+ <parameter>
+ <name>maxIdle</name>
+ <value>4</value>
+ </parameter>
</ResourceParams>
...
</Context>
@@ -530,6 +538,33 @@
JDBC driver. Customize the <code>driverClassName</code> and
<code>driverName</code> parameters to match your actual database's
JDBC driver and connection URL.</p>
+
+ <p>The configuration properties for Tomcat's standard data source
+ resource factory
+ (<code>org.apache.naming.factory.DbcpDataSourceFactory</code>) are
+ as follows:</p>
+ <ul>
+ <li><strong>driverClassName</strong> - Fully qualified Java class name
+ of the JDBC driver to be used.</li>
+ <li><strong>maxActive</strong> - The maximum number of active instances
+ that can be allocated from this pool at the same time.</li>
+ <li><strong>maxIdle</strong> - The maximum number of connections that
+ can sit idle in this pool at the same time.</li>
+ <li><strong>maxWait</strong> - The maximum number of milliseconds that the
+ pool will wait (when there are no available connections) for a
+ connection to be returned before throwing an exception.</li>
+ <li><strong>password</strong> - Database password to be passed to our
+ JDBC driver.</li>
+ <li><strong>url</strong> - Connection URL to be passed to our JDBC driver.
+ (For backwards compatibility, the property <code>driverName</code>
+ is also recognized.)</li>
+ <li><strong>user</strong> - Database username to be passed to our
+ JDBC driver.</li>
+ <li><strong>validationQuery</strong> - SQL query that can be used by the
+ pool to validate connections before they are returned to the
+ application. If specified, this query MUST be an SQL SELECT
+ statement that returns at least one row.</li>
+ </ul>
</subsection>
1.8 +1 -1 jakarta-tomcat-4.0/webapps/tomcat-docs/config/context.xml
Index: context.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/config/context.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- context.xml 30 Nov 2001 06:23:13 -0000 1.7
+++ context.xml 16 Mar 2002 20:32:31 -0000 1.8
@@ -601,7 +601,7 @@
<value>org.hsql.jdbcDriver</value>
</parameter>
<parameter>
- <name>driverName</name>
+ <name>url</name>
</value>jdbc:HypersonicSQL:database</value>
</parameter>
<parameter>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>