Appender to JTDS that registers org.osgi.service.jdbc.DataSourceFactory OSGi service based on the JTDS JDBC driver.
During the call of DataSourceFactory.createDataSource(java.util.Properties) and DataSourceFactory.createXADataSource(java.util.Properties) functions the following properties can be defined:
- JDBC_SERVER_NAME
- JDBC_PORT_NUMBER
- JDBC_DATABASE_NAME
- JDBC_USER
- JDBC_PASSWORD
- All properties defined in net.sourceforge.jtds.jdbc.Driver class
In case any of the configuration parameter is duplicated by using both the constants of DataSourceFactory and Driver class the one defined with the constant of [DataSourceFactory] will be applied.
If you like this bundle, you might be interested in the osgi-jdbc-dsf project that:
- is a configurable component (configuration via configadmin)
- picks up a DataSourceFactory OSGi service
- Creates a Driver, DataSource or XADataSource and registers it as an OSGi service
The artifact is available on maven-central.