I have had to remove WrappedDataSource (used during stress testing to ensure that we are not leaking connections).
While I was able to "stub" the new Java 6 methods for DataSource (ie unwrap methods), the WrappedConnection we were implementing simply could not be implemented for both Java 5 and Java 6. Java 6 adds new create methods for constructs that do not even existi in Java 5 - Connection.createClob() - Connection.createNClob() - etc... Links: - http://java.sun.com/javase/6/docs/api/java/sql/Connection.html - http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Connection.html So I have resorted to a Hack... introducing DBCP as a test depedency and then ... abusing it as a wrapper > final DataSource database = HsqlEpsgDatabase.createDataSource(); > datasource = new BasicDataSource(){ > { > this.dataSource = database; > } > }; > mediator = new HsqlDialectEpsgMediator(80, hints, datasource); I can then count how many connections it has returned... > datasource.getNumActive() This is a really evil hack, but it is limited to a test case ... I will wait to here back before committing. Jody ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
