Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1656

Driver-XA classes should not be hardcoded in console code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.6.5.Final
    • 3.0.10.Final, 3.2.0.Final
    • None
    • None

      Inside the same class DatasourceTemplates.java for each driver vendor I can see Driver-xa-datasource class is being added via hardcoding.

      ex:
      driver.get(DRIVER_XA_DATASOURCE_CLASS_NAME).set("org.postgresql.xa.PGXADataSource");

      Hard coding is not recommended/suggested as these classes/classpath may change with driver versions.

              rhn-support-yvedpath Yogesh Vedpathak
              rhn-support-spatra Sweta Patra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: