This documentation relates to last stable version of Cipango.
visit the last unstable documentation home.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

  • sip-api-1.1.jar
  • servlet-api-2.5.jar
  • cipango-client-2.1.jar
  • cipango-jmx-2.1.jar
  • cipango-server-2.1-SNAPSHOT.jar
  • jetty-continuation-7.2.2.v20101205.jar
  • jetty-http-7.2.2.v20101205.jar
  • jetty-io-7.2.2.v20101205.jar
  • jetty-jmx-7.2.2.v20101205.jar
  • jetty-security-7.2.2.v20101205.jar
  • jetty-server-7.2.2.v20101205.jar
  • jetty-servlet-7.2.2.v20101205.jar
  • jetty-util-7.2.2.v20101205.jar
  • jetty-webapp-7.2.2.v20101205.jar
  • jetty-xml-7.2.2.v20101205.jar

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
  • No labels