Hello all,

I created a custom persistence manager for ConfigAdmin that stores config
properties in a SQL database.
I'm using a custom karaf distro and apparently for my bunde to work it
needs to be listed as a startup bundle, at least when starting karaf for
the first time.
Because my bundle requires JDBC, I need to include the JDBC driver and
"org.osgi.service.jdbc".
...
   <startupBundles>

<startupBundle>mvn:org.osgi/org.osgi.service.jdbc/1.0.0</startupBundle>
      <startupBundle>mvn:org.postgresql/postgresql/42.2.8</startupBundle>

<startupBundle>mvn:com.joaoassuncao.osgi-utils/configadmin-sql-persistence/1.0.2-SNAPSHOT</startupBundle>
   </startupBundles>
..

I wanted to avoid the direct use of bundles and use startupFeatures
instead. Unfortunately, I only managed to make it work when the startup
feature is only of those "core" ones, for example, the eventadmin one.
If I specify pax-jdbc-postgresql as a startup feature its bundles are not
included. I tried to include pax-jdbc-features as a startup repository but
this didn't do it.

Any ideas ?

Thank you in advance.
Best regards,

João Assunção

Reply via email to