See
https://ops4j1.jira.com/wiki/display/PAXJDBC/Pooling+and+XA+support+in+1.0.0
For H2 and hikari you could use:
osgi.jdbc.driver.name=H2
pool=hikari
databaseName=test
user=sa
password=
dataSourceName=test2
To install in karaf:
feature:repo-add pax-jdbc 1.0.1
feature:install pax-jdbc-config pax-jdbc-pool-hikaricp pax-jdbc-h2
You should see a DataSource
service:list DataSource
[javax.sql.DataSource]
----------------------
databaseName = test
dataSourceName = test2
felix.fileinstall.filename =
file:/home/cschneider/java/apache-karaf-4.1.0/etc/org.ops4j.datasource-local.cfg
osgi.jdbc.driver.name = H2
osgi.jndi.service.name = test2
password =
service.bundleid = 55
service.factoryPid = org.ops4j.datasource
service.id = 120
service.pid = org.ops4j.datasource.78e4961e-be81-4328-9d2e-6e6af73bebd1
service.scope = singleton
user = sa
Provided by :
OPS4J Pax JDBC Config (55)
As far as I know hikari has no XA support or at least we do not support it.
Christian
On 24.02.2017 17:12, Leschke, Scott wrote:
I’m a bit confused on how to configure the underlying connection pool.
I’ll be using the Hikari pool service.pax-jdbc-pool-hikaricp. Could
someone point me to the docs or something? The only example I see is
for DBCP and all my experiments thus far have failed.
Thx, Scott
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com