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.

Craig

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:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to