Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above example is overly simplistic with respect to concurrency issues and error conditions, but it demonstrates the overall approach for using bundle-provided services from the host application. Note, that to compile the above code you will need to compile against the Felix framework and Felix OSGi compendium JAR files, since the ServiceTracker classes are included in the compendium JAR file, not the framework JAR file.

...