Author: arminw
Date: Wed Oct  4 04:39:28 2006
New Revision: 452853

URL: http://svn.apache.org/viewvc?view=rev&rev=452853
Log:
add comments, update attribute names and values

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

Modified: db/ojb/trunk/src/test/org/apache/ojb/repository_database.xml
URL: 
http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/repository_database.xml?view=diff&rev=452853&r1=452852&r2=452853
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/repository_database.xml (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/repository_database.xml Wed Oct  4 
04:39:28 2006
@@ -46,50 +46,63 @@
         ignoreAutoCommitExceptions="false"
      >
 
+        <!-- Specify the ConnectionFactory implemenation:
+        org.apache.ojb.broker.accesslayer.ConnectionFactoryDBCPImpl
+        org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl
+        org.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl
+         -->
         <connection-factory
             
class="org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl"
             validationQuery=""
         >
-            <!-- add attributes supported by the ConnectionFactory class here 
-->
+            <!-- ** Attributes with prefix "ojb." supported by all 
ConnectionFactory implementations -->
             <!-- Set fetchSize to 0 to use driver's default. -->
             <attribute attribute-name="ojb.fetchSize" attribute-value="0"/>
-            <!-- Enable/disable OJB's internal statement caching. This only
-            make sense when the used jdbc-driver/ConnectionFactory doesn't
-            support statement caching -->
+            <!-- Enable/disable OJB's internal statement caching. This make 
sense
+            when the used jdbc-driver/ConnectionFactory doesn't support 
statement
+            caching. The statements cached as long as the current used 
connection
+            is returned to pool/closed. NOTE: It's recommended to disable 
OJB's statement
+            caching if the jdbc-driver or the connection-pool 
statement-caching is enabled
+             -->
             <attribute attribute-name="ojb.cacheStatements" 
attribute-value="false"/>
             <!-- If OJB's statement caching is enabled, this property set the 
max number
              of cached statements per connection -->
-            <attribute attribute-name="ojb.maxCacheStatements" 
attribute-value="20"/>
+            <attribute attribute-name="ojb.maxCacheStatements" 
attribute-value="50"/>
 
 
-            <!-- Attributes with name prefix "pool." supported by 
ConnectionFactoryPooledImpl
-            and ConnectionFactoryDBCPImpl -->
+            <!-- ** Attributes with name prefix "pool." supported by 
ConnectionFactoryPooledImpl
+            and ConnectionFactoryDBCPImpl:
+            (prefix 'pool.' is mandatory for all attributes, e.g. 
"pool.maxActive")
+            "maxActive", "maxIdle", "minIdle", "maxWait", 
"whenExhaustedAction",
+            "testOnBorrow", "testOnReturn", "testWhileIdle", 
"timeBetweenEvictionRunsMillis",
+            "numTestsPerEvictionRun", "minEvictableIdleTimeMillis", 
"validationQuery",
+            "softMinEvictableIdleTimeMillis", "initialSize"
+            -->
             <attribute attribute-name="pool.maxActive" attribute-value="30"/>
             <attribute attribute-name="pool.maxIdle" attribute-value="-1"/>
             <attribute attribute-name="pool.maxWait" attribute-value="10000"/>
             <attribute attribute-name="pool.whenExhaustedAction" 
attribute-value="0"/>
             <attribute attribute-name="pool.testOnBorrow" 
attribute-value="true"/>
             <attribute attribute-name="pool.testOnReturn" 
attribute-value="false"/>
-            <attribute attribute-name="pool.testWhileIdle" 
attribute-value="true"/>
+            <attribute attribute-name="pool.testWhileIdle" 
attribute-value="false"/>
             <attribute attribute-name="pool.timeBetweenEvictionRunsMillis" 
attribute-value="-1"/>
             <attribute attribute-name="pool.numTestsPerEvictionRun" 
attribute-value="10"/>
-            <attribute attribute-name="pool.minEvictableIdleTimeMillis" 
attribute-value="600000"/>
+            <attribute attribute-name="pool.minEvictableIdleTimeMillis" 
attribute-value="-1"/>
+            <attribute attribute-name="pool.initialSize" attribute-value="0"/>
 
-
-            <!-- Attributes with name prefix "jdbc." are passed directly to 
the JDBC driver. -->
-            <!-- Example setting (used by Oracle driver when Statement 
batching is enabled) -->
-            <attribute attribute-name="jdbc.defaultBatchValue" 
attribute-value="5"/>
-
-
-            <!-- additional attributes supported by ConnectionFactoryDBCPImpl 
-->
+            <!-- ** Additional attributes supported by 
ConnectionFactoryDBCPImpl:
+            (prefix 'dbcp.' is mandatory for all attributes, e.g. 
"dbcp.poolPreparedStatements")
+            "poolPreparedStatements", "maxOpenPreparedStatements", 
"accessToUnderlyingConnectionAllowed"
+            "logAbandoned", "removeAbandoned", "removeAbandonedTimeout"
+            -->
             <!--
             Attributes determining if ConnectionFactoryDBCPImpl
             should also pool PreparedStatement. This is programmatically 
disabled
             when using platform=Oracle9i since Oracle statement caching will 
conflict
             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="20"/>
+            <attribute attribute-name="dbcp.poolPreparedStatements" 
attribute-value="true"/>
+            <attribute attribute-name="dbcp.maxOpenPreparedStatements" 
attribute-value="50"/>
             <!-- Attribute determining if the Commons DBCP connection wrapper 
will allow
                  access to the underlying concrete Connection instance from 
the JDBC-driver
                  (if not specified, by default it's enabled). -->
@@ -98,6 +111,17 @@
             <attribute attribute-name="dbcp.removeAbandoned" 
attribute-value="false"/>
             <attribute attribute-name="dbcp.removeAbandonedTimeout" 
attribute-value="300"/>
 
+
+            <!-- ** Attributes with name prefix "jdbc." are passed directly to 
the JDBC driver. -->
+
+            <!-- Example setting (used by Oracle driver when Statement 
batching is enabled) -->
+            <!--<attribute attribute-name="jdbc.defaultBatchValue" 
attribute-value="5"/>-->
+
+            <!-- Oracle9i prefetch size. Do not mix the JDBC 2.0 fetch size 
API and the
+            Oracle row prefetching API in your application. You can use one or 
the other,
+            but not both. -->
+            <!--<attribute attribute-name="jdbc.defaultRowPrefetch" 
attribute-value="20"/>-->
+
         </connection-factory>
 
 
@@ -112,6 +136,7 @@
             <attribute attribute-name="batch.supportOptimisticLocking" 
attribute-value="false"/>
         </batch>
 
+        
         <!-- Specify the caching strategy and the used caching implementation 
-->
         <object-cache 
class="org.apache.ojb.broker.cache.ObjectCacheDefaultImpl"
             strategy="org.apache.ojb.broker.cache.CachingStrategyTwoLevelImpl"
@@ -136,11 +161,11 @@
             SequenceManagerInMemoryImpl, SequenceManagerNextValImpl
             please see "Sequence Manager" guide or/and javadoc of class for 
more information -->
             <attribute attribute-name="seq.start" attribute-value="200000"/>
-            <attribute attribute-name="autoNaming" attribute-value="true"/>
+            <attribute attribute-name="seq.autoNaming" attribute-value="true"/>
 
             <!-- attributes supported by SequenceManagerHighLowImpl
             please see "Sequence Manager" guide or/and javadoc of classes for 
more information -->
-            <attribute attribute-name="grabSize" attribute-value="20"/>
+            <attribute attribute-name="seq.grabSize" attribute-value="20"/>
 
             <!-- optional attributes supported by SequenceManagerNextValImpl 
(support depends
             on the used database), please see "Sequence Manager" guide or/and 
javadoc of



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to