Chapter 12. Coping with the non-OSGi world

This chapter covers

  • How to use existing third-party libraries with OSGi
  • Patterns to avoid in OSGi where you can
  • How to work around some common problems
  • How to avoid doing more work than you need to

We’ve spent the majority of this book talking to you about how amazing OSGi is, and the fact that everybody should be using it. We believe this to be true, as do many others, but not everybody thinks of OSGi when writing their code. If they did, then there wouldn’t be much need for this book! Even though so many people do now think of OSGi, there are plenty of excellent libraries that have been in use for years, long before OSGi was as widely used as it is now.

We don’t expect enterprise OSGi developers ...

Get Enterprise OSGi In Action 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.