Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2516

ConnectionProperties not being honor in Driver connect invocation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.1.1, 2.2.3, 2.3.0, 2.4.1
    • None
    • jdbc
    • None
    • Patch Available

    Description

      Per manual:
      openjpa.ConnectionProperties: If the listed driver is an instance of java.sql.Driver, this string will be parsed into a Properties instance, which will then be used to obtain database connections through the Driver.connect(String url, Properties props) method. If, on the other hand, the listed driver is a javax.sql.DataSource, the string will be treated as a plugin properties string, and matched to the bean setter methods of the DataSource instance.

      However setting property
      openjpa.ConnectionProperties=sslConnection=true,sslTrustStoreLocation=C:\db_certs,sslTrustStorePassword=password
      is not being used during driver.connect() and failed due to connection refusal.

      Attachments

        1. OPENJPA-2516-2.2.x.patch
          1 kB
          Will Dazey
        2. OPENJPA-2516.patch
          1 kB
          Albert Lee

        Activity

          People

            allee8285 Albert Lee
            allee8285 Albert Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: