Hi,
I'm just trying to address how to address the problem of developing
components that needs access to
database using the javax.sql.Datasource object..
Unfortunately JNDI integration is still not complete and not usable at
the moment....
Actually i've managed this situation using a DS component factory that
provide javax.sql.Datasource services
into the OSGi registry.
This DS factory is just used by a deployment service that provide to
deploy/undeploy datasources upon files deployed on a particular
filesystem folder, using commons-dbcp bundle.
BTW to make this wroking i've use the Dynamic-Import directive into the
bundle of commons-dbcp because if this is
not present dbcp does not work because it's not able to create the
driver class...
I think this is a very common problems and i'd like to know and share
within the community which could be the best approach, when you need to
work with Datasource in OSGi enviroment...
Any thoughts??
Andrea Zoppello
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev