db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: JIRA JDO-53
Date Fri, 03 Jun 2005 00:03:03 GMT
I would be very surprised to find any connection pooling done between a 
PMF constructed in one test and a PMF constructed in the next test. We 
explicitly close the PMF after a test is complete.


On Jun 2, 2005, at 9:01 AM, Andy Jefferson wrote:

>>> 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 ...)
> -- 
> Andy
> JPOX - Java Persistent Objects
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!

View raw message