"Richard S. Hall" <[EMAIL PROTECTED]> writes: > You should NOT add the log bundle's activator to your start > method. Just let it be a normal bundle.
I'm curious why I need to load it as a bundle at all, if the classes are already being loaded by the main program. I was following your discussion all the way up to this point. If the main program has access to the bundle content on the class path, and it exports the packages offered by the bundle, then what does having Felix load the actual bundle achieve, save for running the bundle's activator in a more obvious way? The log bundle is a fairly simple example. In thruth, my main application may also need access to parts of the compendium bundle. The Export-Package header there is much more baroque and makes me even more apprehensive to be hard-coding that header into the org.osgi.framework.system.packages property. > One other approach is to use reflection to access the log, that way > your Main does not need access to the log package. As it happens, I > am working on this for the framework right now and plan to check it > in today, so you can see what I mean. I look forward to seeing this. -- Steven E. Harris