felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: Exposing packages?
Date Mon, 21 Nov 2005 16:53:02 GMT

There is a new property (I don't remember the name exactly, but I think 
it is org.osgi.framework.systemPackages) that is a list of packages 
[from the class path] that should be exported by the system bundle. I 
think the currect example in SVN includes some javax.swing packages, for 

Does that help?

-> richard

p.s. My machine appears to have died this morning, so I am kind of at a 
loss with respect to looking this information up right now. :-(

Marcel Offermans wrote:

> I'm currently in the process of migrating an R3 OSGi project to R4, 
> from Oscar to Felix. Some of the bundles in this project used packages 
> available on the Java 5 platform without explicitly importing them. 
> This is obviously a bug in these bundles. What I'm looking for is the 
> best way to solve this problem. Let's use an example. One such package 
> I want to "expose" to the bundles is "javax.management" because I want 
> to make use of the MBean server embedded in Java 5. As far as I can 
> see the best way to do this is to use the new "Extension Bundle" 
> mechanism which is not yet implemented in Felix.
> I am manually bootstrapping Felix at the moment, using something like: 
> (new Felix()).start(myprops, null); and I was wondering if it would be 
> possible to add exports to the system bundle like this (you can add 
> activators this way, but can you also add exports)?
> Greetings, Marcel

View raw message