Programatically Start OSGi (Equinox)?
Posted
by
javamonkey79
on Stack Overflow
See other posts from Stack Overflow
or by javamonkey79
Published on 2011-01-12T19:59:26Z
Indexed on
2011/01/12
20:53 UTC
Read the original article
Hit count: 249
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.
© Stack Overflow or respective owner