Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Example of Embedding Kernel
Example of Embedding Kernel [message #792444] Tue, 07 February 2012 01:58 Go to next message
Nick Baker is currently offline 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 08:22 Go to previous messageGo to next message
Borislav Kapukaranov is currently offline 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. Smile

Best Regards
Borislav

[Updated on: Wed, 08 February 2012 08:26]

Report message to a moderator

Re: Example of Embedding Kernel [message #793516 is a reply to message #793512] Wed, 08 February 2012 08:25 Go to previous messageGo to next message
Borislav Kapukaranov is currently offline Borislav Kapukaranov
Messages: 80
Registered: September 2010
Member
Out of curiosity, what is your use case that requires bootstrapping knowledge?
Re: Example of Embedding Kernel [message #800352 is a reply to message #793516] Fri, 17 February 2012 00:56 Go to previous message
Nick Baker is currently offline Nick Baker
Messages: 3
Registered: December 2011
Junior Member
Borislav Kapukaranov wrote on Wed, 08 February 2012 03:25
Out 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
Previous Topic:Virgo 3.5.0.M02 released
Next Topic:Spring Security for Multiple Web Page
Goto Forum:
  


Current Time: Tue Sep 30 11:54:59 GMT 2014

Powered by FUDForum. Page generated in 0.02118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software