Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3426

Add ability to set JDBC properties via dynamic properties in DBCPConnectionPool

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      Although many JDBC drivers allow for the setting of connection-specific properties via the JDBC URL, some JDBC drivers only accept specific configuration properties for a connection via programmatic calls to add properties to the Connection object; those same properties will not be parsed from the URL.

      In general, a proposed improvement is to add support for Dynamic Properties to the DBCPConnectionPool controller service. Each dynamic property would be set as a property on the DataSource when the controller service is enabled. Note that Expression Language can be supported, but as no flow file will be available at enable-time, flow file attributes cannot be used in EL expressions. However the Variable Registry could be leveraged to provide different values in different environments (dev, test, production, e.g.).

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: