They are all possible. Whether is makes sense is in the eye of the 
beholder :-)

Scenarios 1 and 3 are both changing the BSN (bundle symbolic name) of an 
installed bundle.

Scenario 2 is about adding a BSN. This is probably more common as people 
start to take advantage of R4 function.

Scenario 1 is possible of a bundle is refactored into a set of bundles, 
but in that case it is more likely the original BSN will still be needs as 
a facade bundle to combine the refactored bundles.

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]
Office: +1 407 849 9117 Mobile: +1 386 848 3788



Marcel Offermans <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
2006-03-21 08:42 AM
Please respond to
OSGi Developer Mail List <osgi-dev@bundles.osgi.org>


To
OSGi Developer Mail List <osgi-dev@bundles.osgi.org>, 
felix-dev@incubator.apache.org
cc

Subject
[osgi-dev] Updating and mixing R3 and R4 bundles and Bundle-SymbolicName






There are a couple of scenarios that I'd like to discuss that have to do 
with updating bundles and mixing R3 and R4. Whilst I agree some of them 
are a bit theoretical, I'd like to get your opinions on how to deal with 
them (best practices if you wish). These issues are related to the 
Bundle-SymbolicName.

When talking about Bundle-SymbolicName, the spec (3.5.2) says:
The installation of a bundle with a Bundle-SymbolicName and 
Bundle-Version identical to an existing bundle must fail.

Furthermore, on bundle validity the spec (3.11) says (amongst other 
things):
Updating a bundle to a bundle that has the same symbolic name and 
version as another installed bundle [causes a bundle to fail].

Scenario 1:
Updating an R4 bundle with symbolic name A to one with symbolic name B.
Provided B (with the same version) does not exist yet, this should not 
fail, although for me it is strange to change the symbolic name in an 
update.

Scenario 2:
Updating an R3 bundle to an R4 bundle.
Provided the symbolic name and version of the R4 bundle does not fail, 
this should be possible.

Scenario 3:
Updating an R4 bundle to an R3 bundle.
This should be possible, but might break dependencies that are using the 
symbolic name.

Any comments on this?

Greetings, Marcel

_______________________________________________
osgi-dev mailing list
osgi-dev@bundles.osgi.org
http://bundles.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
osgi-dev mailing list
osgi-dev@bundles.osgi.org
http://bundles.osgi.org/mailman/listinfo/osgi-dev

Reply via email to