a little madness

A man needs a little madness, or else he never dares cut the rope and be free -Nikos Kazantzakis


OSGi Tutorials

One of the challenges when starting out with OSGi is finding information on the basics. The official site offers a few articles on specific topics, but no real tutorials. Probably the best resources on that site are the technology overview and the technical whitepaper, but neither document helps you to get your hands dirty. However, there are some other tutorials and presentations about that dig into more detail:

  • The OSGi and Gravity Service Binder Tutorial on the Oscar site starts with the simplest bundle and works up. A good starting point, even though the service binder is Oscar-specific (the concept is still useful, however, and explained from first principles).
  • The Knopflerfish tutorial, which again starts from the very basics. Some of the content is specific to Knopflerfish, but the OSGi basics are also covered in a hands-on fashion.
  • The aQute OSGi Tutorial, which is a detailed presentation with accompanying source code. Uses Eclipse/Equinox as a basis to develop some simple OSGi-based applications. A good next step once you know how to make the simplest bundles.

These links should help you get over the initial hump with OSGi.

Liked this post? Share it!

11 Responses to “OSGi Tutorials”

  1. February 6th, 2007 at 6:29 am

    Clement says:


    I create few weeks ago a course on OSGi. This course does not aims to be complete by try to bring an overview of OSGi.

    This course is available on http://clement.plop-plop.net/index.php?option=com_content&task=blogsection&id=5&Itemid=30


  2. February 6th, 2007 at 8:51 am

    Stephan says:

    You can also find a JavaPolis video talk using Spring OSGi @ parleys.com

  3. February 6th, 2007 at 11:35 pm

    Glyn Normington says:

    These tutorials are fine for anyone who has already decided they want to learn more about OSGi, but they lack a trivial example for people who just want to dip their toe in the water.

    My creating an OSGi bundle blog aims to help newcomers create their first OSGi bundle from scratch in under 10 minutes.

  4. February 7th, 2007 at 1:19 am

    Jason says:

    Hi Clement,

    Thanks for the links. It seems to provide a good overview of OSGi and where it fits in the world. Those still unsure can check it out before moving on to one of the other links.

  5. February 7th, 2007 at 1:20 am

    Jason says:


    Spring-OSGi is definitely of interest to us, we hope to use it at a later time (perhaps Pulse 2.1). Thanks for pointing us to the presentation.

  6. February 7th, 2007 at 1:22 am

    Jason says:

    Hi Glyn,

    I like the simplicity of your basic intro. It’s always best to get these things working by a bit of hand editing before moving on to tool support like that found in Eclipse. Otherwise I find when I hit a problem I have no idea what is going on under the hood.

  7. February 9th, 2007 at 5:02 am

    Clement says:


    I propose another tutorial. It is not directly on OSGi but on iPOJO, a service -oriented component runtime proposing the same feature as Spring but with a different approach and different motivations. iPOJO aims to be light, easy to use, flexible, and extensible.


  8. February 9th, 2007 at 6:44 am

    Alex Blewitt says:

    You might be interested in this (and others):


  9. February 11th, 2007 at 1:44 am

    Jason says:

    Hi Alex,

    Yes, I noticed that tutorial appeared just after my original blog post. Interesting coincidence :). I followed up with another post, this new series looks like the best starting point for Equinox users.

  10. February 12th, 2007 at 6:26 pm

    Deb’s Blog » Blog Archive » links for 2007-02-12 says:

    […] a little madness » OSGi Tutorials Blog post with links to OSGi tutorials including additional links in the comments. There are also OSGi tracks at EclipseCon in Santa Clara and QCon in London in March as well. (tags: OSGi tutorial) […]

  11. September 24th, 2008 at 4:48 pm

    Recomended Weekly Link’s (from 13.02.2007) « Dmitry Ulanov’s Opinions says:

    […] OSGi Tutorials One of the challenges when starting out with OSGi is finding information on the basics. […]

Leave a Reply