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 Re: JIRA JDO-53
Date Thu, 02 Jun 2005 16:38:13 GMT
Hi Andy,

>>>In your case JPOX will be creating a DBCP DataSource, instead of the
>>>normal DataSource, and in PMF.close() this is nulled out. Looking at the
>>>code it isn't explicitly closed - I'll have to check if the DBCP class
>>>provides a close() method.
>>
>>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/
-------------------------------------------------------------------

Mime
View raw message