Table of Contents

OSGi (Open Services Gateway Initiative)

  • Dynamic Module System for Java (with accompanying service portfolios)
  • 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 explicitly defined
    • versions of dependencies and services are understood
    • configuration and other services are managed by the framework
  • Applications run inside of an OSGi framework which performs all of the dependency checking
  • Dynamic
    • Applications/modules 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)
    • OSGi services can be injected into application-wired Spring-beans
    • Application services can be deployed as OSGi services
  • Especially useful if you intend to take advantage of Spring for other purposes within your application

Tools

Misc

  • Web Application support
    • Tomcat
    • Jetty
  • Bundle configuration (fragments)

References

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