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

Compare with Current View Page History

« Previous Version 8 Next »

Introduction

ApacheDS is scheduled to offer OSGi capability around the June 2007 timeframe.

Proposal

We propose to begin moving to OSGi through a series of baby steps:

  1. Document packages - Start documenting all our packages in all our projects with package-info.java files.
  2. Analyze dependencies - Refactor to improve coupling.
  3. Resolve obstacles - Track the status of obstacles to moving to OSGi to reduce the risk of making a bad container choice. See the "Obstacles" table, below.

    Obstacle

    Status

    Move antlr wrapper from 'jconlon osgi-commons' to Felix.

    (tick)

    Move commons-collections wrapper from 'jconlon osgi-commons' to Felix.

    (tick)

    Move commons-lang wrapper from 'jconlon osgi-commons' to Felix.

    (tick)

    Move jzlib wrapper from 'jconlon osgi-commons' to Felix.

    (tick)

    Update to apacheds-core-osgi to support latest Apache Directory schema implementation.

    (error)

    Achieve Felix graduation.

    (error)

    Delete 'osgi' module from trunk.

    (error)

    Clean-up, doco, and enhancements to the protocols (Kerberos, etc.).

    (error)

    Config Admin migration from ServiceBinder.

    (error)

    Prefs migration from ServiceBinder.

    (error)

    User Admin migration from ServiceBinder.

    (error)

    Migrate Config Admin service from Apache Directory to Apache Felix.

    (error)

    Migrate Prefs service from Apache Directory to Apache Felix.

    (error)

    Migrate User Admin service from Apache Directory to Apache Felix.

    (error)

    Code Config Admin service to use Metatype Service.

    (error)

    Assign OID for use with ADS config admin client modules, in JIRA.

    (error)

    Re-design Config Admin schema (split from apache.schema, assign own OID range).

    (error)

    Doco the dynamic DIT-backed service config for the protocol providers.

    (error)

    Doco the catalog system for DNS zones.

    (error)

    Doco the catalog system for Kerberos realms.

    (error)

    A bundle to offer the Mina libraries (DIRMINA-27)

    (error)

    Roll out bundles to little-used protocol providers.

    (error)

    A bundle to offer ApacheDS libraries and a JNDI backend service (bootstrap configuration, dynamic schema loading).

    (error)

    Achieve Felix 1.0 release with R4 support.

    (error)

    Non-snapshot Felix bundle plugin released and deployed to Ibiblio.

    (error)

    Bug fix in Maven when using multiple plugins.

    (error)

    Finish key enterprise features the server needs first.

    (error)

    Find/build an integration testing framework to easily test services within the target container as part of the maven build process.

    (error)

    Achieve good test coverage, testing the ApacheDS services inside an OSGi container (requires integration testing framework).

    (error)

    Solid documentation in Confluence for OSGi-based architecture for ApacheDS.

    (error)

    Solid documentation in Confluence for running the ApacheDS OSGi build.

    (error)

    Greater team awareness of this OSGi based architecture.

    (error)

    Review OSGi alternatives like xbean.

    (error)

    Possibly wait for a Spring-OSGi release.

    (error)

    Time for us all to be involved to make sure something does not go wrong during this move to OSGi.

    (error)

    Roll out bundles to core artifacts, LDAP, and Kerberos.

    (error)

  4. Add OSGi metadata - Add the maven-bundle-plugin to our pom.xml files, one by one, to generate bundle jars with OSGi metadata.
  5. Use container - Switch 'server-main' to use Apache Felix, update installers, etc.
  6. Future enhancements - TBD, major functionality improvements taking full advantage of OSGi dynamics.

Notes

From an OSGi perspective ApacheDS can be viewed as three major organizations of functionality:

  • Shared utility functionality - Shared
  • Network functionality - Mina
  • Main platform functionality - ApacheDS

The three functional organizations of ApacheDS are now being adapted to OSGi through a process of 'structural and service oriented componentization'.

For a review of OSGi best practices see: OSGi Best Practices

Structural Componentization

Structural Componentization is the management or partitioning of software at the modular (archive/jar) level. In OSGi a structural component or bundle refers to a Java archive, that has OSGi metadata annotated in its manifest. In the OSGi runtime container, bundles (metadata annotated jars) offer or export their Java packages for use or import by other bundles running within the container.

Package import and export relationships between bundles, are created as classloader wirings by the OSGi runtime container.

Structural Componentization can also be called 'Package Dependency Management'. Structural Componentization is the initial focus of the OSGi work effort. It will consist of annotating ApacheDS software artifacts with OSGi specific metadata.

OSGi Commons Bundling Projects

Both ADS and Mina depend on third party libraries. For OSGi based Mina and/or ApacheDS bundles to start within an OSGi runtime; all dependent libraries must be packaged as OSGi bundles, be installed, started and have their packages exported to the OSGi runtime so that these packages may be imported by the Mina and ApacheDS bundles.

The OSGi Commons Bundling projects have been initiated to facilitate the creation of Mina and ApacheDS dependent libraries as OSGi bundles. The projects are simple pom based and simply wrap the targeted third party packages in OSGi annotated jars (aka OSGi bundles).

Current OSGi Commons Bundle Projects:
  1. antlr
  2. commons-collections
  3. commons-lang
  4. jzlib
The maven Plugin

The OSGi Commons Bundling projects utilize the new org.apache.felix maven-bundle-plugin to do the wrapping/annotating of the jars.

Service Componentization

Service Componentization refers to the management of services and their dependencies on other services and on configuration resources.

  • No labels