You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2006/09/26 14:21:44 UTC

svn commit: r450017 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml

Author: arminw
Date: Tue Sep 26 05:21:44 2006
New Revision: 450017

URL: http://svn.apache.org/viewvc?view=rev&rev=450017
Log:
add comment for attribute 'initialSize', 
minor changes

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml?view=diff&rev=450017&r1=450016&r2=450017
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml Tue Sep 26 05:21:44 2006
@@ -71,7 +71,7 @@
             <attribute attribute-name="applicationCache" attribute-value="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl"/>
             <attribute attribute-name="copyStrategy" attribute-value="org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl$CopyStrategyImpl"/>
             <attribute attribute-name="forceProxies" attribute-value="false"/>
-            
+
             <!-- ObjectCacheDefaultImpl attributes -->
             <attribute attribute-name="timeout" attribute-value="900"/>
             <attribute attribute-name="autoSync" attribute-value="true"/>
@@ -79,7 +79,13 @@
             <attribute attribute-name="useSoftReferences" attribute-value="true"/>
         </object-cache>
 
-        <!-- For more info, see section "Connection Handling" in docs -->
+        <!-- For more info, see section "Connection Handling" in docs (and apche commons-Pool and commons-DBCP)
+        Supported attributes:
+        maxActive, minIdle, maxIdle, maxWait, minEvictableIdleTimeMillis, numTestsPerEvictionRun, testOnBorrow
+        testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, whenExhaustedAction, validationQuery,
+        DBCP specific attributes: removeAbandoned, removeAbandonedTimeout, logAbandoned
+        Additional custom attributes see below.
+        -->
         <connection-pool
             maxActive="30"
             validationQuery="@VALIDATION_QUERY@"
@@ -88,6 +94,9 @@
             whenExhaustedAction="0"
             maxWait="10000">
 
+            <!-- Set initial connection pool size on startup of the pool -->
+            <!--<attribute attribute-name="initialSize" attribute-value="0"/>-->
+
             <!-- Set fetchSize to 0 to use driver's default. -->
             <attribute attribute-name="fetchSize" attribute-value="0"/>
 
@@ -101,11 +110,11 @@
                  with DBCP ObjectPool-based PreparepdStatement caching (ie setting true
                  here has no effect for Oracle9i platform). -->
             <attribute attribute-name="dbcp.poolPreparedStatements" attribute-value="false"/>
-            <attribute attribute-name="dbcp.maxOpenPreparedStatements" attribute-value="10"/>
+            <attribute attribute-name="dbcp.maxOpenPreparedStatements" attribute-value="30"/>
             <!-- Attribute determining if the Commons DBCP connection wrapper will allow
                  access to the underlying concrete Connection instance from the JDBC-driver
-                 (normally this is not allowed, like in J2EE-containers using wrappers). -->
-            <attribute attribute-name="dbcp.accessToUnderlyingConnectionAllowed" attribute-value="false"/>
+                 (by default it's enabled). -->
+            <!--<attribute attribute-name="dbcp.accessToUnderlyingConnectionAllowed" attribute-value="false"/>-->
         </connection-pool>
 
         <!-- alternative sequence manager implementations, see "Sequence Manager" guide -->



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