pax

Programmatically Start OSGi (Equinox)?

人盡茶涼 提交于 2019-11-26 21:42:32
I'd like to be able to easily start an OSGi framework (preferably Equinox) and load up any bundles listed in my pom from a java main. Is this possible? If so, how? It seems like the pax tools would do this, but I can't seem to find any documentation indicating such. I know I can start up Equinox like so: BundleContext context = EclipseStarter.startup( ( new String[] { "-console" } ), null ); But I'd like to do more - like I said: load more bundles in, maybe start some services, etc. Neil Bartlett Any OSGi framework (R4.1 or later) can be started programmatically using the FrameworkFactory API:

Programmatically Start OSGi (Equinox)?

丶灬走出姿态 提交于 2019-11-26 08:02:08
问题 I\'d like to be able to easily start an OSGi framework (preferably Equinox) and load up any bundles listed in my pom from a java main. Is this possible? If so, how? It seems like the pax tools would do this, but I can\'t seem to find any documentation indicating such. I know I can start up Equinox like so: BundleContext context = EclipseStarter.startup( ( new String[] { \"-console\" } ), null ); But I\'d like to do more - like I said: load more bundles in, maybe start some services, etc. 回答1: