You need a DataSourceFactory for this to work. As ingres probably does not
offer this you can create your own bundle with a class that implements
DataSourceFactory and returns a DataSource. This class then must be
published as a service with the above property.

Christian

Am Di., 24. Juli 2018 um 18:02 Uhr schrieb Paul Spencer <[email protected]>:

> Karaf 4.2
>
> I am trying to create a JDBC datasource for a DBMS not natively supported
> by
> PAX-JDBC, specifically Ingres.   Below are the commands I am using to
> install the Ingres JDBC driver and create the datasource.  Based on the log
> files, the creation process is waiting on a service dependency.
>
> karaf@root()> bundle:install wrap:mvn:com.ingres.jdbc/iijdbc/9.2-3.4.10
> karaf@root()> jdbc:ds-create -url jdbc:ingres://localhost/dbname -u user
> -p
> password -dc com.ingres.jdbc.IngresDataSource myDS
> karaf@root()> log:display
> 11:47:35.465 INFO [CM Configuration Updater (Update:
> pid=org.ops4j.datasource.b91f90b0-b399-49ab-9f55-9ab522d24833)] Waiting for
> service dependency:
>
> (&(objectClass=org.osgi.service.jdbc.DataSourceFactory)(osgi.jdbc.driver.class=com.ingres.jdbc.IngresDataSource))
>
> How to I create a JDBC datasource using com.ingres.jdbc.IngresDataSource?
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>


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

Computer Scientist
http://www.adobe.com

Reply via email to