Chapter 5. Cooperation among Service Bundles

In the traditional library-based software environment, we can always count on the class library to be there. Because library-based software is usually layered, it is impossible to build the next layer if the layer beneath it is not present.

This reassuring static configuration is no longer the norm with the component-based model used by the OSGi framework. We have learned that bundles can be started or stopped and services can be registered or unregistered, which makes for a rather dynamic run-time environment. This chapter provides general guidelines on how to cope with the challenge that during the active life span of your bundle, other bundles and services on which you rely may go away. We propose ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology 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.