Book Image

Mastering Spring Application Development

By : Anjana Mankale
Book Image

Mastering Spring Application Development

By: Anjana Mankale

Overview of this book

Table of Contents (19 chapters)
Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

OSGI containers


OSGI containers must implement a set of services, and a contract is established between the OSGI container and application. All the following mentioned OSGI containers are open source:

  • KnoplerFish: The Knopler framework can be easily installed and it is easier to bundle and deploy modules in the container. The Bundle applications need a .manifest file and build .xml file. It's mandatory to have the framework. JAR file should be available in the Java build path. The Bundle that needs to be deployed in the KnoplerFish container will have a class that implements the BundleActivator interface. The interface comes with start() and stop() methods that needs to be implemented. Usually a thread class is also created, and the thread is started in the BundleActivator interface implementation class's start method, and stopped in the stop method. You can also create an OSGI service by creating an interface and implementation class. The service can be registered in the BundleActivator...