4.7. Library Bundles

It is often the case that certain standard class libraries, or utility or helper classes need to be shared by many bundles. Library bundles fill this role.

In a conventional Java runtime environment, you usually add additional class libraries to the CLASSPATH before running an application. However, by packaging them into library bundles, you can gain additional manageability and flexibility: You can choose to install them only when needed and you may be able to update the bundles with a newer version without shutting down the framework.

Generally, library bundles do not register any services or have activators. They can be constructed with these two steps:

1.
Define the library classes and interfaces in their appropriate ...

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.