Hi Angelo,
You can find my inline comments below...
On 26.2.2012 г. 16:24 ч., Angelo van der Sijpt wrote:
H list,
While working on the Apache Felix Deployment Admin, I noticed it is unclear
when resource processors are allowed to be uninstalled.
Figure 114.8 of the Compendium specification suggests that stale bundles have
to be removed _before_ calling commit() on the resource processors'; hence, we
cannot remove customizer bundles that should be removed because they are no
longer part of the current deployment package. So, while it is described how to
_update_ customizer bundles, I can't find anything about removing them.
We could choose to not remove them at all, but that, in turn, can lead to the
following situation:
Deployment package 1
- contains Resource A
- contains Customizer bundle (version 1) with Resource Processor for A
Deployment package 2
- (removed Resource A)
- (removed Customizer bundle with Resource Processor for A)
- ...
Deployment package 3
- contains Resource A'
- contains Customizer bundle (version 2) with Resource Processor for A
Installing these packages in their order means that after deployment package 2
is installed, we leave the Customizer bundle (in version 1) in the framework.
Installing package 3 now fails, because it tries to update Customizer bundle to
version 2, but doesn't expect the bundle in version 1 to be in the framework.
Just to clarify, Deployment package 2 and 3 are fix packages for
Deployment package 1, right?
Any thoughts on this? Does the spec need some clarification or update to allow
a specific moment for removing resource processors? Or am I reading the spec
wrong, and is there a natural solution?
It looks like a specification deviation. The stale deployment package
customizers should be uninstalled after the commit of the resource
processors.
ATB, Evgeni
Thanks,
Angelo
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
--
-----------------------------------------------------------------------------------
Evgeni Grigorov . Senior Software Engineer/Development Tools
ProSyst Software GmbH
Tel. +359 2 953 05 88 . Fax +359 2 953 26 17
Mobile +359 895 300 305
http://www.prosyst.com . [email protected]
-----------------------------------------------------------------------------------
stay in touch with your product.
-----------------------------------------------------------------------------------
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev