Hi all,

Ikuo Yamasaki schrieb:
> Hi all,
> 
> I'm now imlementing CT of OSGi-A R4.2 for CM.
> 
> Please assume that:
> 
> 1. Conf1 with pid1 and locationA is created.
> 2. BundleA whose location is locationA registers a ManagedService
> service with the pid1.
> ==> the service (updated method) will be called back with null prop.
> 3. Now, which should happen if setBundleLocation(null) of Conf1 is
> called ?
> 
> Choice A: the service is called back again and the location of Conf1 is
>       dynamically set to locationA, because Conf1 is explicitly set as
>       "dynamic binding conf" and there exists the target bundle,
>       BundleA. (Just as if the ManagedService got registered at the
>       momement.)
> 
> 
> Choise B: Nothing happens.
> 
> IMO, Choice A. In addition, the spec should be clarified on this point
> in the future. (I don't mean, R4.2 cmpn spec should be fixed because it
> is too late.)
> 
> # Current RI(Apache Felix impl) does as Choice B.
> 
> What do you think ?

How about Option C: The configuration binding remains bound to locationA
but the binding is converted into a dynamic binding which is removed
when bundleA is uninstalled.

If going for Option A: Should then also be an CM_UPDATED event be fired ?

Plus: What happens if in step 3 setBundleLocation(locationB) (not A!) is
called ? This should actually take the configuration away from BundleA,
right ?


Regards
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to