Hi, On 10.04.2010 20:10, Reto Bachmann-Gmuer wrote: > I have a component with a reference as follows: > > @Reference(name="globalMenuItemsProvider", > cardinality=ReferenceCardinality.OPTIONAL_MULTIPLE, > policy=ReferencePolicy.STATIC, > referenceInterface=GlobalMenuItemsProvider.class) > > with scr 1.0.6 every service of that interface got injected (and the > component deactivated and reactivated), with scr 1.4.0 the component only > gets the services available when it is activated, services showing up later > are ignored.
Yes, this is correct. The problem is, that the 1.0.6 behaviour is incorrect because newly registered services must not be provided to statically bound references once the component is activated. If you want get updates on newly arriving services after the component has been activated, you have to declare them as dynamic references. > > I was expecting the behavior as provided by 1.0.6. I've also tried > 1.4.1-SNAPSHOT with the same results. I assume you mean 1.4.1-SNAPSHOT has the same behaviour as 1.0.4, right ? Regards Felix --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

