[Proxool-cvs] proxool/src/java/org/logicalcobwebs/proxool ConnectionPoolDefinition.java, 1.35, 1.36
UNMAINTAINED!
Brought to you by:
billhorsman
From: <bil...@us...> - 2007-07-28 10:39:49
|
Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32426/src/java/org/logicalcobwebs/proxool Modified Files: ConnectionPoolDefinition.java Log Message: Use enumeration of property names rather than iteration of keyset so that we make use of any default properties that might be set. Index: ConnectionPoolDefinition.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ConnectionPoolDefinition.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** ConnectionPoolDefinition.java 19 Jun 2007 11:33:35 -0000 1.35 --- ConnectionPoolDefinition.java 28 Jul 2007 10:39:12 -0000 1.36 *************** *** 12,20 **** import java.sql.DriverManager; import java.sql.SQLException; ! import java.util.HashSet; ! import java.util.Iterator; ! import java.util.Properties; ! import java.util.Set; ! import java.util.StringTokenizer; import java.lang.reflect.Modifier; --- 12,16 ---- import java.sql.DriverManager; import java.sql.SQLException; ! import java.util.*; import java.lang.reflect.Modifier; *************** *** 232,238 **** if (info != null) { ! Iterator i = info.keySet().iterator(); ! while (i.hasNext()) { ! String key = (String) i.next(); String value = info.getProperty(key); changed = changed | setAnyProperty(key, value, pretend); --- 228,234 ---- if (info != null) { ! Enumeration e = info.propertyNames(); ! while (e.hasMoreElements()) { ! String key = (String) e.nextElement(); String value = info.getProperty(key); changed = changed | setAnyProperty(key, value, pretend); *************** *** 1369,1372 **** --- 1365,1371 ---- Revision history: $Log$ + Revision 1.36 2007/07/28 10:39:12 billhorsman + Use enumeration of property names rather than iteration of keyset so that we make use of any default properties that might be set. + Revision 1.35 2007/06/19 11:33:35 billhorsman Changed time (millisecond) properties from int to long: maximumConnectionLifetime, houseKeepingSleepTime, recentlyStartedThreshold, overloadWithoutRefusalLifetime, maximumActiveTime |