We are facing here a problem with the user of
osgi:install with plain jars using wrap.
If we install 2 jars containing the same packages (e.g. 2 different versions of a driver), they are both listed in the karaf console as exporting these packages (version 0.0.0)
If we start them both, one of them won't be listed as exporting the packages anymore.
In our case, it means for example that it is impossible to deploy 2 projects making use of 2 different versions of an oracle driver to connect to 2 different database instances.
The problem seems to be related to the wrap mechanism: If we install 2 bundlelized versions of the driver (using bnd for example - where each package exports the same version as the bundle version (i.e. not 0.0.0)), both of them are still listed as exporting the packages even if both started.
JBoss Fuse 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.