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

pax jdbc config 1.2.0 fails to register XA Datasource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.2.0
    • 4.2.2
    • karaf
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: