This is possible in two ways.

You can use the http://www.osgi.org/javadoc/r4v42/org/osgi/service/jdbc/DataSourceFactory.html sepcified in the OSGi spec if your drivers supports it.

If not then you can try this tutorial:
http://www.liquid-reality.de/x/LYBk
Basically the idea is to publish a DataSource as an OSGi service using a separate blueprint file and using the service in your user bundle. This way you can have the filter to reference the OSGi service in a config of your user bundle. So you can switch db types.

Christian

Am 21.05.2013 17:40, schrieb FERJANI:
Hello everyone,

I'd like to configure the database type (mysql, derby,..) from an external configuration type. Is this possible using blueprint ?

Regards,
Khadija


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

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to