Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

KeyDescription
osgi.jdbc.driver.nameIdentify the DataSourceFactory by name
osgi.jdbc.driver.classIdentify the DataSourceFactory by class
dataSourceNameWill be set as dataSourceName as well as osgi.jndi.service.name in the published service
ops4j.preHookName of a PreHook service to call before the DataSource is published. Such a service must implement org.ops4j.pax.jdbc.hook.PreHook and have a service property name with the same value as this config property.
*

All other local properties (not containing a dot) are forwarded to the DataSourceFactory to create the DataSource. Additionally, properties prefixed with "jdbc." will also be forwarded, the prefix being discarded.

For instance "username" will be forwarded, but "aries.xa.name" will not be forwarded to the DataSourceFactory (but published as service properties in the service registry).

Properties are also published as service properties in the service registry. Hidden properties are supported (starting with a dot, e. g. ".password"). Such properties are not shown in the service registry, however, they are forwared to the DataSourceFactory (without the leading dot).

Installation in karaf 3/4

Create config in etc/org.ops4j.datasource-test.cfg:

...

Code Block
languagebash
titleInstallation
feature:repo-add mvn:org.ops4j.pax.jdbc/pax-jdbc-features/01.81.0/xml/features
feature:install pax-jdbc-h2 pax-jdbc-config

...