Monday, March 28, 2011

OSGi bootdelegation

I found a situation where an osgi bundle made a reference to an expected system library that wasn't there, but since the bundle did not include the dependency as an osgi reference, the framework (Felix in this case) threw a 'Class Not Found' exception.

Turns out, our friends at the OSGi Alliance have a solution for this kind of problem.

org.osgi.framework.bootdelegation=package

Essentially, packages specified will bypass the osgi environment and go directly to the VM.

Seems like this feature should be used sparingly and only when necessary.

No comments:

Post a Comment