Chapter 3. Integrating Spring and OSGi

You're fresh off exploring Spring and OSGi as stand-alone technologies. Now it's time for you to experience what both have to offer in tandem. This chapter will focus on the different layers at which a Java application designed around Spring can benefit from integrating OSGi, as well as what additional steps or software you need to make use of in order to obtain the desired results.

I wouldn't expect you to take a leap of faith and combine Spring and OSGi just because "you can," so I'll start by elaborating on the high-level benefits of doing so.

OSGi's Synergy with Spring

OSGi is about the packaging, versioning, and dynamic loading of Java applications, while Spring is about pursuing a pragmatic approach to ...

Get Pro Spring Dynamic Modules for OSGi™ Service Platforms 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.