Many components can share a configurationPid and changes to properties in the configurationPid will notify all of the components.
@Component(name = "my-component", immediate = true, configurationPid = "org.apache.karaf.example.config”) public class MyComponent { … } @Component(name = “my-anothercomponentt", immediate = true, configurationPid = "org.apache.karaf.example.config”) public class MyAnotherComponent { … } @Component(name = “my-thirdcomponent", immediate = true, configurationPid = "org.apache.karaf.example.config”) public class MyThirdComponent { … } Paul Spencer > On Feb 4, 2025, at 3:07 PM, Steinar Bang <s...@dod.no> wrote: > > Is it possible to have two SCR components share a karaf config value and > have the other component pick up the changed config when one of the > components changes the config value? > > I have a use case where I would like two different components, that > otherwise have no knowledge of each others, share an integer value, >