Migrating complex applications to OSGi

A session at ApacheCon North America 2013

Monday 25th February, 2013

9:00am to 12:30pm (PST)

The tutorial will be about moving complex applications to OSGi in general, with Apache Karaf more specifically.

During ApacheCon EU Hackathon we moved part of Apache James email server to OSGi and deployed it inside Apache Karaf. Apache James is quite a complex project but the process only took a few hours. James's component based architecture (based on Spring) and combined knowledge from both projects made the experience pleasant. This tutorial shares the process, and shows you how to make your applications OSGi ready.

The emphasis will be (in this order) OSGi, Apache Karaf, Apache James.

People wishing to attend this tutorial should have intermediate Java skills with basic knowledge of class loaders and how they work. Spring and basic OSGi knowledge is a plus, but is not required.

The outline for the tutorial will feature:

  • Introduction to Apache James: architecture and short talk about James components (mime4j, mailbox, protocols, etc.).
  • Introduction to Apache Karaf - benefits of using Karaf (instead of plain Felix or Equinox) as a container for your application.
  • Migrating a simple components - how to; best practices related to API separation from implementation; OSGi packaging via maven-bundle-plugin; deployment issues, etc.
  • Deployment: show how components are deployed inside Karaf and show how they connect to each other via services. How to switch between implementations, stop/start components with examples from James (SMTP service, IMAP, POP3, etc.)

At the end of the tutorial attendees should have the skills to

  • create OSGi bundles (with maven-bundle-plugin)
  • create and use OSGi services
  • debug some OSGi common issues
  • create custom Karaf commands and a custom Karaf distribution for their application

About the speakers

This person is speaking at this event.
Andrei Savu

Leading engineering work on Cloudera Director and related services. Previously founder of Axemblr.com

This person is speaking at this event.
Ioan Eugen Stan

Dezvoltator, entuziasmat de tehnologie, Committer Apache bio from Twitter

2 attendees

  • Andrei Savu
  • Ioan Eugen Stan

Sign in to add slides, notes or videos to this session

Sign in to track this session

Tell your friends!


Time 9:00am12:30pm PST

Date Mon 25th February 2013

Short URL


View the schedule


See something wrong?

Report an issue with this session