Skip to content
Permalink
Browse files
Add note about including parameters when using 'wrap:' prefix
The Bundle-SymbolicName and Bundle-Version parameters need to be
specified to avoid default values being generated that can cause
problems when rebinding persisted state.
  • Loading branch information
kemitix committed Jan 30, 2019
1 parent 1730d72 commit b04b297032976ae23206492144fc959cb23409ed
Showing 1 changed file with 4 additions and 2 deletions.
@@ -127,8 +127,10 @@ there are a few options for getting an equivalent OSGi bundle:

* Use the `wrap:` prefix. The [PAX URL Wrap protocol](https://ops4j1.jira.com/wiki/display/paxurl/Wrap+Protocol)
is an OSGi URL handler that can process your legacy jar at runtime and transform it into an OSGi bundle.
This can be used when declaring a dependency in your feature.xml, and when using the Karaf console's
`bundle:install`. Note that it is not yet supported in Brooklyn's `brooklyn.libraries` catalog items.
This can be used when declaring a dependency in your feature.xml, and when using the Karaf console's
`bundle:install`. Note that it is not yet supported in Brooklyn's `brooklyn.libraries` catalog items.__
When using `wrap:` include the `Bundle-SymbolicName` and `Bundle-Version` headers as parameters. (e.g.
`wrap:mvn:javax.xml.ws/jaxws-api/2.3.0$Bundle-Symbolic-Name=javax.xml.ws.api&Bundle-Version=2.3.0`)

* Re-package the bundle yourself, offline, to produce a valid OSGi bundle.

0 comments on commit b04b297

Please sign in to comment.