This content has been marked as final.
Show 2 replies
-
1. Re: PostgreSQL Datasource
pchandler Jul 8, 2009 6:04 PM (in response to rcracel)Roger,
There is two ways to resolve this "run-time" dependency. That I know of:
Option 1 (preferred):
a. Find a bundle that exports org.postgresql.*
b. Start it in the ServiceMix (OSGi container)
c. Add in a Import-Package: org.postgresql.* to your manifest.
d. Restart (uninstall and install -s) your bundle.
Option 2:
a. Add the PostgreSQL Driver into your bundle (jar).
b.Create Bundle-ClassPath: that references the jar.
http://www.aqute.biz/Snippets/BundleClassPath
Peter.
-
2. Re: PostgreSQL Datasource
rcracel Jul 9, 2009 9:52 AM (in response to pchandler)Peter,
thank you for your quick response, just wanted to document my solution here. This is what did the trick for me:
The following is also a great resource for finding osgi bundles:
http://www.osgi.org/Repository/HomePage
thanks,
Roger