You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Table of Contents

OSGi (Open Services Gateway Initiative)

  • Dynamic Module System for Java
  • Provides a mechanism to break an application into modules for which:
    • dependencies are explicitly defined and must be provided
    • the services provided by the module are explicitely defined
    • versions of dependencies and services are understood
  • Applications run inside of an OSGi container which performs all of the dependency checking
    • Three interoperable containers: Equinox, Apache Felix, Knopflerfish
  • Dynamic
    • Applications can be installed, uninstalled, started, and stopped on-the-fly
  • An OSGi bundle is simply a standard Java jar with the addition of a Manifest which specifies the services that the module provides as well as the modules dependencies (among other things)

Spring DM (Dynamic Modules)

  • Allows for the creation of OSGi bundles through the use of Spring xml
  • Provides a way to support OSGi without your code needing to be aware of OSGi (or Spring)
  • Especially useful if you intend to take advantage of Spring for other purposes within your application

Tools

  • PAX Construct provides scripts which handle some of the setup/configuration of an OSGi project

References

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels