Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6816569

Adding close() method to javax.sql.CommonDataSource

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 7
    • core-libs
    • x86
    • windows_xp

      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.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: