| Example of Embedding Kernel [message #792444] |
Mon, 06 February 2012 20:58  |
Nick Baker Messages: 3 Registered: December 2011 |
Junior Member |
|
|
Hi all,
I'm looking to compare Virgo with an existing Karaf installation and am looking for a bootstrap example. I found
AbstractOsgiFrameworkLaunchingTests.java which seems close, but it's setting up a lot that I'm not sure it needed.
Thanks,
Nick
|
|
|
| Re: Example of Embedding Kernel [message #793512 is a reply to message #792444] |
Wed, 08 February 2012 03:22   |
Borislav Kapukaranov Messages: 80 Registered: September 2010 |
Member |
|
|
Hi,
In 3.0.x and earlier versions we used our own launcher that used OSGi's FrameworkFactory API. The bootstrapping code is more or less covered here.
In 3.5 we've been consuming the Equinox launcher that is bundled with Eclipse. Generally it executes similar logic but adds a few more useful configuration options listed here.
Basically to programmatically invoke the framework's start in 3.5 you can use the Main class in the Equinox Launcher - it should do everything for you. Just put Equinox in its classpath.
If you want to get a feeling of the internals browse the EclipseStarter class. Here's the launcher's and Equinox's git repo.
In a nutshell we stick to what's commonly used. 
Best Regards
Borislav
[Updated on: Wed, 08 February 2012 03:26] Report message to a moderator
|
|
|
|
| Re: Example of Embedding Kernel [message #800352 is a reply to message #793516] |
Thu, 16 February 2012 19:56  |
Nick Baker Messages: 3 Registered: December 2011 |
Junior Member |
|
|
Borislav Kapukaranov wrote on Wed, 08 February 2012 03:25Out of curiosity, what is your use case that requires bootstrapping knowledge?
We're embedding an OSGI runtime inside of an application that's not pure OSGI yet. The first steps are changing our service locator implementation from Spring to Blueprint, making our core components available to Bundles. We're also migrating all plugins to OSGI.
Eventually when the whole system is converted over and the uses of the service locator are gone, we'll not need to embed the framework, but that's a while away.
If you're still curious, it's the Pentaho BI Platform.
Cheer Borislav!
-Nick Baker
|
|
|
Powered by
FUDForum. Page generated in 0.01654 seconds