Using c3p0 0.9.1.2 .
In pooledDataSource( DataSource unpooledDataSource, Properties props ) properties are traversed as a hashmap while peeling the c3p0 ones:
Properties peeledProps = new Properties();
for (Iterator ii = props.keySet().iterator(); ii.hasNext(); ) (...)
This leaves out the possible defaults set inside the properties object (that is, the second hashmap mentioned in the java docs). A better way would be:
for (String propKey : props.stringPropertyNames() ) (...)
I am currently unsure if this happens as well in 0.9.2-preX versions as I am using c3p0 from the maven repositories (directly, without hibernate or spring).
Log in to post a comment.