Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5703

pax jdbc config 1.2.0 fails to register XA Datasource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.2
    • Component/s: karaf
    • Labels:
    • Environment:

      Karaf 4.2.0, Windows 10&Linux Centos 7/JDK 8 (1.8.0_162)

      Description

      Under Karaf 4.1.x I was able to define a XA DataSource by setting the following:

       

      feature:install transaction jndi pax-jdbc-config pax-jdbc-pool-dbcp2 jdbc
      bundle:install -s mvn:org.postgresql/postgresql/42.2.2

      config:edit org.ops4j.datasource-TestDS
      config:property-set osgi.jdbc.driver.class org.postgresql.Driver
      config:property-set pool dbcp2
      config:property-set xa true
      config:property-set serverName localhost
      config:property-set databaseName test
      config:property-set portNumber 5432
      config:property-set user test
      config:property-set password test
      config:property-set dataSourceName TestDS
      config:property-set jdbc.pool.maxTotal 16
      config:update

       

      This doesn't work anymore in 4.2.0, the DataSource doesn't get registered. pax-jdbc-config doesn't seem to be scanning the configuration anymore. I see no messages in the logs, not even errors.

       

        Attachments

          Activity

            People

            • Assignee:
              ggrzybek Grzegorz Grzybek
              Reporter:
              cvillegas Carlos Alberto Villegas Fonseca
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: