Versions Compared

Key

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

Collection of OSGi conversion tips

Table of Contents
minLevel3

Lets collect tips on osgi conversion here

jars with xmlbeans compilation

...

The pax-logging-api together with pax-logging-service provides a logging service in the OSGi environment that works with all commonly used logging API.

General OSGi tips

  • The Bundle-ClassPath can refer to a directory within the bundle. Make sure there is an entry just for that directory in the JAR file of the bundle. Otherwise, classes might not be loaded from that directory.
  • Always specify some wild mark in the filePattern (the second argument) in the bundle.findEntries() call to ensure the same set of entries is returned on different OSGi frameworks.