Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
langxml
<classpath>
  <location>jar:file:/path/to/my.ear!/my.jar</location>
  <location>jar:file:/path/to/my.ear!/other*.jar</location>
</classpath>

New in ServiceMix 4.2.0

To allow you to access classes from other OSGi bundles in your SU code as well, the library element has now been enhanced to allow referencing bundles when running in ServiceMix 4.2.0 or above. The URI syntax is osgi:<bundle symbolic name> or osgi:<bundle symbolic name>/<version> to reference a specific bundle version.

Example: the following snippet explicitly adds the org.springframework.bean bundle to the SU classloader.

Code Block
langxml

<classpath>
  <library>osgi:org.springframework.bean</library>
</classpath>