Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample code for my "OSGi for mere mortals" presentation at ApacheCon NA 2011

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 core
Octocat-spinner-32 launcher
Octocat-spinner-32 .gitignore
Octocat-spinner-32 pom.xml

OSGi for mere mortals

This is the code of my "OSGi for mere mortals" presentation at ApacheCon NA 2011, and ApacheCon EU 2012, - a small standalone RESTful server built from scratch using OSGi Declarative Services.

The slides at should help you walk through the code.

The example demonstrates the complete lifecycle of an OSGi application, from starting the framework and installing the required bundles to running the app itself.

The Maven build is also a useful example of how to create OSGi bundles in a simple way.

To build the runnable jar, run mvn clean install at the top of the source code tree (using Apache Maven 3.0.3 or later).

You can then start the server from the launcher subfolder by running

java -jar target/osgi-for-mere-mortals-launcher-0.0.1-SNAPSHOT.jar

(or whatever the name of that jar file is).

The OSGi console shown in the slides is at http://localhost:8080/system/console

Something went wrong with that request. Please try again.