You should read the OSGi R4.2 specification of the OSGi JavaDoc if you
are interested in learning about OSGi or various other tutorials, etc.
available on the web. If you haven't already done so, you should also read:
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html
As the above page explains, Felix implements the OSGi standard Framework
interface, which is why you'll want to read the OSGi JavaDoc. I guess we
could generate the OSGi JavaDoc and make it available on our site
somewhere, but I'm pretty sure someone else has put it online already.
-> richard
On 12/14/10 8:48 PM, Bjorn Roche wrote:
Hey all,
I have a large and complex Java app (call it the main app) that
would like to use features from another large and complex Java app
(call it the library app). The main app is a standard app written
without knowledge of OSGi and the library app is OSGi-based. I have
read some of the slideshows and tutorials and so on that you have
online, and my impression is that there are some facilities for this.
For example,
http://felix.apache.org/site/presentations.data/felix-apachecon-20071114.pdf gives
this bit of code:
// Define configuration properties
Map configMap = new StringMap(false);
configMap.put(..., ...);
...
// Create application activators
List list = new ArrayList();
list.add(new Activator());
try {
// Create a framework instance
Felix felix = new Felix(configMap, list);
// Start framework instance
felix.start();
...
// Stop framework instance
felix.stop();
} catch (Exception ex) { ... }
Ordinarily, my next step would be to look at the Javadocs for the
Felix object to figure out what this all means. But I can't find the
Javadocs for this project. I've looked through the site, I've googled,
I've searched the mailing list a bit (hard to search, eg, by date),
and I've downloaded the framework and run maven to the best of my
knowledge (I'm not exactly a maven maven). Still no love. Am I missing
something obvious? Can someone point me in the right direction?
More generally, other than possible code rework in my library app,
what would be involved in larger task of using features that exist in
an OSGi app in a non-OSGi app?
Thanks for your help,
bjorn
-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]