3.4. Bundle

A bundle is a form of packaging for services. It is also a functional unit with life cycle operations and class loading capability. Lastly, it contains well-defined “hooks” that allow it to be plugged into the framework.

3.4.1. A Bundle Is a Packaging Vehicle

A bundle is a JAR file that contains class files and resources such as images, HTML pages, and other data files. Bundles are usually delivery and deployment vehicles for services. For instance, a bundle that contains the music player service may also include a collection of MP3 files to play. Another bundle that contains a lighting control service may also come with a set of HTML pages and images that serve as its user interface. Packaging code together with data makes deployment ...

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.