db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Patch for JDO-53
Date Fri, 03 Jun 2005 10:31:33 GMT

I'm not sure how to continue on this issue. I see three options:

1) Check in the changes though they do not have the expected effect.
2) Leave the code unchanged and close the bug.
3) Check in the changes and change the coding pattern for TCK tests, so 
that all tests share the same PMF instance.

I vote for option 1). Below I listed the changes for option 1):

1) Additional dependencies to JPOX plugins, DBCP, C3P0, commons-pool, 
2) Change in propject.properties, maven.xml to extend the TCK classpath
3) Add a JPOX property to PMF properties

I have added a patch file containing these changes. The connection pool 
in this patch is set to DBCP. You can switch to C3P0 if you set JPOX 
property "org.jpox.connectionPoolingType" to "C3P0".

In order to run you need to download the following jars and store them 
in your local maven repository:

1) jpox-dbcp-1.1.0-beta-3.jar to jpox/jars
2) jpox-c3p0-1.1.0-beta-3.jar to jpox/jars
3) commons-dbcp-1.2.1.jar to commons-dbcp/jars
4) c3p0- to c3p0/jars
5) commons-pool-1.2.jar to commons-pool/jars
6) commons-collections-3.1.jar to commons-collections/jars


>>> I'm just curious if two created PMF instances share the same connection
>>> pool?
>> No. You create a PMF and it gets its own (DBCP/C3P0/...) DataSource, 
>> and hence it gets its own connection pool (unless DBCP/C3P0 are 
>> intelligent enough to realise when 2 PMF connection URLs and login 
>> credentials are the same and so share with the already existing data 
>> source ...)
> This is very likely the reason why I do not see performance improvement 
> in TCK runs: Many tests execute only 1 transaction and each test uses a 
> separate PMF instance.
> Thanks,
> Michael

Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/

View raw message