Hi,

On Wed, May 8, 2013 at 9:39 AM, Achim Nierbeck <[email protected]>wrote:

> Well if you take a look at the OSGi spec it is allowed only to alter the
> WebApp-Context for a WAB and that's what actually is working, all other
> Manifest entries need to be kept the way they are specified in the
> Manifest. Therefore it works as specified/designed.
> And my personal opinion as the Bundle-SymbolicName is something to
> identify a Bundle with it shouldn't be even thought of changing the
> Bundle-SymbolicName or something the like, it's the same for the Maven
> location it has to be unique.
> If you require to run the same bundle twice, either install two different
> versions of it, or create two seperate Bundles with each having a unique
> Maven location.
>
>
Solution found. Thank you for your time.

According OSGi Service Platform Core Specification (The OSGi Alliance
Release 4, Version 4.3 April 2011):

The bundle symbolic name and bundle version identify a unique bundle. This
does not always imply that this pair is unique in a framework, in certain
cases the same bundle can be installed multiple times in the same framework.

And:

Bundle Symbolic Name and Bundle Version– A name and version assigned by the
developer. The combination of Bundle Version and Bundle Symbolic Name is a
globally unique identifier for a bundle. The getSymbolicName() method
returns the assigned bundle name. The Bundle getVersion() method returns
the version. Though the pair is unique, it is possible to install the same
bundle multiple times if the org.osgi.framework.bsnversion framework
launching property is set to multiple.

I tried to set karaf configuration (in config.properties):

org.osgi.framework.bsnversion=multiple

and it worked. It now allows to install same WAB multiple times and create
side by side web applications using different Web-ContextPath.

Best regards,

Grazvydas

Reply via email to