Overview

Like in Jetty, all Cipango jars are packaged with file manifests that include appropriate OSGi bundle information. This means that you can import the Cipango jars into an OSGi framework.

The module extra/cipango-client-osgi expose the OSGi SIP service for demonstration purpose:

package org.cipango.client.osgi;

public interface SipService
{
	public void register(int expires) throws java.io.IOException;
}

Compilation

By default, the cipango-client-osgi module is not compiled.

cd extra/cipango-client-osgi
mvn install

Installation in felix

Felix is an OSGi framework and can be downloaded here .

Copy in ${felix.home}/bundles the following jars:

Demonstration

The module extra/cipango-client-osgi-test show a basic use of the SIP OSGi service. When this service is available, it uses it to register.

This module can be compiled and installed with the following commands:

cd extra/cipango-client-osgi-test
mvn install
cp target/*.jar ${felix.home}/bundles
cd ${felix.home}
java -jar bin/felix.jar