Blueprint and managed Services

2017-12-12 Thread Guenther Schmidt
Hello, how do I set the system.pid for a service that needs to receive its configuration data from the OSGi container using Blueprint? Guenther

Re: Blueprint and managed Services

2017-12-12 Thread Guillaume Nodet
Here's a typical example of using configuration in blueprint: https://github.com/apache/karaf/blob/karaf-2.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml The pid of the configuration is defined using the persistent-id attribute: https://github.com/apache/karaf/blob/karaf-2.x/she

Re: Blueprint and managed Services

2017-12-13 Thread Guillaume Nodet
Blueprint does not call setters while the beans are created, so your code does not need to care about changes. What happens is that if the configuration changes, the whole blueprint application will be refreshed. 2017-12-13 22:45 GMT+01:00 Guenther Schmidt : > Hello Guillaume, > > thank you very

Re: Blueprint and managed Services

2017-12-13 Thread Guenther Schmidt
Hello Guillaume, thank you very much, your answers have been very helpful. With update-strategy="component-manged" I do get what I want. I have not tested if the configuration of the service implementation is set at least before the service is used. The configuration has been "deposited" befo