Hi,

attached you find a patch using DBCP connection pool instead of C3P0 connection pool. The patch specifies SNAPSHOT versions of DBCP. For this reason you will see downloads when calling maven.

These are the TCK results using DBCP:

Application indentity:
Tests run: 396,  Failures: 18,  Errors: 28, Time: 261,516 seconds.

Datastore indentity:
Tests run: 396,  Failures: 17,  Errors: 27, Time: 274,421 seconds.

In contrast to the results using C3P0 (relatively, using no connection pool) we have 2 errors more for each identity type. The exceptions are thrown while requesting a connection from the pool. You see the stacktrace below.

Regards,
Michael

java.lang.UnsupportedOperationException
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:136)
        at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:219)
at org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59) at org.jpox.AbstractPersistenceManager.<init>(AbstractPersistenceManager.java:194)
        at 
org.jpox.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:34)
at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:811) at org.apache.jdo.tck.api.persistencemanagerfactory.AfterGetPersistenceManagerNoSetMethodsSucceed.runTest(AfterGetPersistenceManagerNoSetMethodsSucceed.java:137) at org.apache.jdo.tck.api.persistencemanagerfactory.AfterGetPersistenceManagerNoSetMethodsSucceed.testGetPersistenceManagerWithParameters(AfterGetPersistenceManagerNoSetMethodsSucceed.java:128)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:197)
        at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
        at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)
--
-------------------------------------------------------------------
Michael Watzek                  [EMAIL PROTECTED] Engineering GmbH
mailto:[EMAIL PROTECTED]        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------
Index: project.xml
===================================================================
--- project.xml (revision 231468)
+++ project.xml (working copy)
@@ -126,12 +126,14 @@
         <dependency>
             <groupId>commons-dbcp</groupId>
             <artifactId>commons-dbcp</artifactId>
-            <version>1.2.1</version>
+            <!--version>1.2.1</version-->
+            <version>SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>commons-pool</groupId>
             <artifactId>commons-pool</artifactId>
-            <version>1.2</version>
+            <!--version>1.2</version-->
+            <version>SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>commons-collections</groupId>
Index: test/conf/jdori.properties
===================================================================
--- test/conf/jdori.properties  (revision 231468)
+++ test/conf/jdori.properties  (working copy)
@@ -21,5 +21,5 @@
 org.jpox.autoCreateColumns=false
 org.jpox.rdbms.CheckExistTablesOrViews=false
 org.jpox.autoStartMechanism=None
-#org.jpox.connectionPoolingType=DBCP
-org.jpox.connectionPoolingType=C3P0
+org.jpox.connectionPoolingType=DBCP
+#org.jpox.connectionPoolingType=C3P0

Reply via email to