If you created the datasource with jdbc:ds-create, by default the name
is jdbc/dw-datasource that's why I asked about the name.

You can remove the filter to see if the DataSource is found. If not, I
would recommend to check if you don't other bundles than system that
provide package javax.sql.

Regards
JB

On 08/05/2019 16:09, cooshal wrote:
> yes. I have checked the JNDI names. They are listed there with the ClassName
> "com.zaxxer.hikari.HikariDataSource".
> 
> To check if I have a valid connection, I tried out "jdbc:tables
> dw-datasource". This works fine enough.
> 
> Some information:
> I am using pax-jdbc here. The service reference is used in the blueprint.
> 
> <reference id="dw" interface="javax.sql.DataSource"
> filter="(osgi.jndi.service.name=dw-datasource)" />
> 
> If I install this bundle manually (by copying into the deploy folder or via
> bundle:install <path>), it works perfectly fine.
> 
> Do I need to treat pax-jdbc connections specially?
> 
> Regards,
> Cooshal.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to