It definitely met my expectations and a little more. As an added bonus we used my company's web sit... More Testimonials »

OSGi Training

Delivery Options

Upcoming Live eLearning Classes

There are currently no upcoming Live eLearning classes. Please contact us if you would like us to schedule a class.

Class Description

Class Overview

This OSGi training class is designed for system architects, application developers and software engineers who will be developing software with OSGi bundles. Approximately 50% of the class time is devoted to hands-on lab exercises.

Class Goals

  • The benefits of using the OSGi bundle framework
  • How to use the Eclipse Plug-in Development Environment (PDE) to develop and test OSGi bundles
  • The required and optional parts of an OSGi bundle
  • How to add a GUI to an OSGi bundle application
  • How to use threads and the Executor framework in an OSGi bundle application
  • The relationship between OSGi bundles and Eclipse plug-ins
  • How to debug OSGi bundle applications using the console
  • How to remotely load and administer bundles
  • How bundle class loading works
  • How to avoid ClassNotFoundException, ClassCastException, and LinkageError
  • How to localize the MANIFEST.MF file
  • How and when to use the Eclipse Build Properties Editor
  • How to access manifest headers programmatically
  • When and how to use bundle fragments
  • How to manage Eclipse run configurations
  • Existing bundle services
  • How to write your own bundle services
  • The benefits of using a ServiceTracker
  • How to set service properties
  • How to filter or service properties

Class Outline

  1. Introduction
    1. The Eclipse Plug-in Development Environment (PDE)
  2. OSGi Bundle Overview
    1. The Big Picture: Modules
    2. Background: JAR Files and Their Limitations
    3. The OSGi Service Platform
    4. OSGi Bundles
    5. Native Code Libraries
    6. Activators and Bundle Lifecycle
    7. Remote Administration
  3. Threads and GUIs
    1. Bundles and Threads: Activators, Tasks, and Thread Executors
    2. Adding an SWT/JFace GUI
  4. Bundle Class Loading & Bundle Dependencies
    1. Background: Classes and Class Loaders
    2. Typical Class Loader Delegation
    3. A New Level of Visibility
    4. Bundle Dependencies
    5. Require-Bundle vs. Import-Package
    6. Bundle Version Numbering
    7. Bundle Class Loading
    8. Refresh
  5. Avoiding Bundle Dependency Errors
    1. The Bundle Class Space
    2. Avoiding ClassCastExceptions
    3. Avoiding Loader Constraint Violations
  6. Bundle Localization
    1. Manifest Localization Keys
    2. Properties Files
    3. Specifying the Locale
    4. Accessing Headers Programmatically
  7. Bundle Fragments
    1. Example Fragment Uses
    2. The Fragment-Host Header
    3. Fragments and Dependencies
    4. The Eclipse Build Properties Editor
    5. Project Structure vs. Bundle Structure
    6. The build.properties File
    7. Eclipse Run Configurations
  8. Dynamic Services
    1. Dynamic Services Big Picture
    2. Examples: The Services Compendium
    3. Service Providers
    4. Service Consumers
    5. Using Service Trackers
    6. Filtering on Properties

Class Materials

All students receive a course manual or book and all the class examples.

Students in private onsite classes will also receive:

Class Prerequisites

Experience in the following areas is required:

  • Java

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Training Classes
Locations
Live eLearning

Like a class you would go to, but you don't have to go anywhere. More...

Customized Onsite Training

The trainer comes to you and delivers a class customized for your team. More...

Self-Paced eLearning

Our least expensive option. You proceed through the course entirely at your own pace. More...

Reference Library
Partner Programs
© Webucator, Inc. All rights reserved. | Toll Free: 877-932-8228 | UK: 0808-101-3484 | From outside the USA: 315-849-2724| Fax: 315-849-2723