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 theBundleActivator
interface. The interface comes withstart()
andstop()
methods that needs to be implemented. Usually a thread class is also created, and the thread is started in theBundleActivator
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 theBundleActivator...