felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Connect a bundle to a data base
Date Fri, 16 Mar 2012 10:44:54 GMT
The best practice is to configure a DataSource outside of the bundle and 
offer it as a OSGi service. So the user bundle should just reference the 
datasource and use it. The legacy aproach with using a database driver 
classname to configure jdbc does not work well in OSGi.

I have a  tutorial that shows how to do this with Apache Karaf. This 
should also be possible with pure felix just perhaps a little more effort.


Am 16.03.2012 10:10, schrieb elMateo:
> Hello all,
> I need to connect a bundle to a MySQL data base and I don't know how I can
> do it.
> I know that I can't do the same that in a normal Java application, but I
> don't find the correct form to do this.
> Could anybody help me?
> Thanks in advance, Jesus

Christian Schneider

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

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message