A DESCRIPTION OF THE REQUEST :
Adding close() method to javax.sql.CommonDataSource with which all resources to be closed and released. So, the new version of the interface may look:
public interface CommonDataSource extends java.io.Closeable
JUSTIFICATION :
For the moment it is not possible to release all resources from one DataSource when the application is shutdown or the DataSource is changed. This is very critical for dynamics runtime environments like Application Servers and OSGi Frameworks.
Now in many products this problem is solved using org.apache.commons.dbcp.BasicDataSource which wraps the original DataSource.
Adding close() method to javax.sql.CommonDataSource with which all resources to be closed and released. So, the new version of the interface may look:
public interface CommonDataSource extends java.io.Closeable
JUSTIFICATION :
For the moment it is not possible to release all resources from one DataSource when the application is shutdown or the DataSource is changed. This is very critical for dynamics runtime environments like Application Servers and OSGi Frameworks.
Now in many products this problem is solved using org.apache.commons.dbcp.BasicDataSource which wraps the original DataSource.