ApacheCon Europe 2012

Rhein-Neckar-Arena, Sinsheim, Germany

5–8 November 2012

OSGi for mere mortals

Bertrand Delacretaz

Audience level:
Modular Java Applications

Wednesday 2:45 p.m.–3:30 p.m. in Rhein-Neckar


This talk presents a complete OSGi example application, a RESTful server written from scratch, to demonstrate that you don't need to be an OSGi guru to use it.


In the last few years, OSGi has become "the" module system for Java - but is OSGi just for gurus, or are mere mortals actually able to use it? The simple tutorial RESTful server application presented in this talk aims to demonstrate that the average Java developer can actually use OSGi, and greatly benefit from it. It is built from scratch based on a set of standard and custom OSGi services, in a simple and understandable way. Taking advantage of a number of build plugins and runtime tools provided by the Apache Felix and Apache Sling projects allows us to write little code in our example application, while exposing the advantages of an OSGi-based architecture in a simple and convincing way. Our walkthrough of the example application will give developers a way to get started with OSGi, without getting bogged in unnecessary details.