I have done some tests on karaf 4.1.0-SNAPSHOT creating a H2 DataSource from config with dbcp2 pooling and optionally xa support.

It works fine but I spotted some small issues:

1. If the TransactionManager or pax-jdbc-pool-dbcp2 is missing then the log shows: Tracking pooling support with filter (&(objectClass=org.ops4j.pax.jdbc.pool.common.PooledDataSourceFactory)(pool=dbcp2)(xa=true)) It is a little bit hard to interpret that this means either the pax-jdbc-pool-dbcp2 feature or the transaction feature is missing. I have added this to the Documentation.
It would be great if we can improve the logging.

2. If the DataSource is created correctly then there are 3 identical lines in the log:
Found DataSourceFactory. Creating DataSource my

It seems that we hit the logging 3 times for some reason. There is only one DSF service and only one PooledDataSourceFactory service. So I have no idea why this happens. In any case there is only one DataSource registered. So it does not seem to be a severe error.

Christian


On 24.01.2017 11:38, Christian Schneider wrote:
I have staged a release of pax jdbc 1.0.0 on the sonatype nexus:

https://oss.sonatype.org/content/repositories/orgops4j-1249

It would be great if you could test it and give feedback. I will take care of the update in Apache karaf.
https://issues.apache.org/jira/browse/KARAF-4956

As JB wants to do a karaf release 4.1.0 soon with pax jdbc 1.0.0 I will push the pax jdbc bundles to central later today if there is no biggger problem reported.

Christian



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to