You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tv...@apache.org on 2016/08/02 14:05:40 UTC

svn commit: r1754931 - /db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml

Author: tv
Date: Tue Aug  2 14:05:40 2016
New Revision: 1754931

URL: http://svn.apache.org/viewvc?rev=1754931&view=rev
Log:
Add documentation for the dpcp2 factories

Modified:
    db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml

Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml?rev=1754931&r1=1754930&r2=1754931&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml (original)
+++ db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/initialisation-configuration.xml Tue Aug  2 14:05:40 2016
@@ -218,6 +218,20 @@ torque.dsfactory.bookstore.factory= \
 ]]></source>
 
     <p>
+      The SharedPoolDataSourceFactory depends on commons-dbcp which is an
+      optional dependency of the Torque runtime. So don't forget to add
+      the dependency to your project if you want to use this factory:
+    </p>
+
+<source><![CDATA[
+    <dependency>
+      <groupId>commons-dbcp</groupId>
+      <artifactId>commons-dbcp</artifactId>
+      <version>1.4</version>
+    </dependency>
+]]></source>
+
+    <p>
       Then there are two sets of properties related to the pool 
       configuration and settings for making the connection to the database.
       The &quot;connection&quot; set contains all information to create a
@@ -253,6 +267,43 @@ torque.dsfactory.bookstore.pool.validati
 
   </section>
   
+  <section name="SharedPool2DataSourceFactory">
+
+    <p>
+      This factory uses the SharedDataSource available in the
+      commons-dbcp2 package. All other properties are identical to those of the
+      SharedPoolDataSourceFactory.
+    </p>
+
+    <p>
+      The SharedPool2DataSourceFactory depends on commons-dbcp2 which is an
+      optional dependency of the Torque runtime. So don't forget to add
+      the dependency to your project if you want to use this factory:
+    </p>
+
+<source><![CDATA[
+    <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-dbcp2</artifactId>
+      <version>2.1.1</version>
+    </dependency>
+]]></source>
+
+    <p>
+      The &quot;pool&quot; set contains information of how the pool should
+      handle the physical connections.  See
+      <a href="https://commons.apache.org/proper/commons-dbcp/configuration.html">the dbcp reference</a>
+      for possible properties.
+    </p>
+
+    <p>
+      Torque also includes a factory for the 
+      <code>PerUserPoolDataSource</code>.
+      Please see the commons-dbcp2 javadoc for more info.
+    </p>
+
+  </section>
+
   <section name="JndiDataSourceFactory">
 
     <p>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org