karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Villegas (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5703) pax jdbc config 1.2.0 fails to register XA Datasource
Date Tue, 17 Apr 2018 06:30:00 GMT
Carlos Villegas created KARAF-5703:

             Summary: pax jdbc config 1.2.0 fails to register XA Datasource
                 Key: KARAF-5703
                 URL: https://issues.apache.org/jira/browse/KARAF-5703
             Project: Karaf
          Issue Type: Bug
          Components: karaf-jdbc
    Affects Versions: 4.2.0
         Environment: Karaf 4.2.0, Windows 10&Linux Centos 7/JDK 8 (1.8.0_162)
            Reporter: Carlos Villegas

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}}


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.


This message was sent by Atlassian JIRA

View raw message