My Spring DM collection doesn change even though the number of OSGi service changes. Whats wrong?
Make sure the Spring DM collections are injected into object of compatible types (for example list into java.util.List or java.util.Collection). If the types are not compatible, the container will have to perform type conversion, transforming the Spring DM managed collection into a ‘normal’ one, unaware of the OSGi dynamics.