Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-152

[DBCP] add a socketFactory attribute to BasicDataSource (to allow SSL "thread"-safe)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.2
    • 1.3
    • None
    • Operating System: All
      Platform: Other

    • 38603

    Description

      An app that accesses 2 datasources at two different places with different
      security policies via SSL (different set of permitted ciphers) currently is out
      of luck (http://lists.mysql.com/java/8689).

      The basic datasource should be enhanced with

      String socketFactory = "";

      and the corresponding getter and setter method, etc.

      org.apache.commons.dbcp.DriverConnectionFactory.createConnection() could then
      hand-over this full className via its Properties argument to enable different
      SSL policies per datasource (so, since the application programmer doesn't have
      the thread under her control, I guess it should rather be called "dataSource-safe").

      The jdbc driver implementation can then use this to take the appropriate socket
      factory when creating a connection.

      See also http://lists.mysql.com/java/8695

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralfhauser Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: