Chapter 22. Integrating Code Libraries

There are many useful open-source and commercial Java libraries available today, as well as libraries developed by individuals or teams. Using these in an OSGi context can be hampered by two issues: packaging as bundles and the use of historical Java extensibility mechanisms.

The last few years have seen a dramatic increase in the number of Java libraries that include OSGi markup, but even the most OSGi-biased developer would concede that the majority of Java libraries out there are still not shipped as bundles. Even if they were bundles, many libraries use context class loaders and other techniques that clash with OSGi. This chapter discusses the integration of these libraries into the OSGi runtime environment. ...

Get OSGi and Equinox now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.