karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: Blueprint and managed Services
Date Wed, 13 Dec 2017 06:49:11 GMT
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/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L37

and properties are used inside values such as:

https://github.com/apache/karaf/blob/karaf-2.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L76

Cheers,
Guillaume Nodet


2017-12-13 1:20 GMT+01:00 Guenther Schmidt <schmig68@gmail.com>:

> 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
>
>


-- 
------------------------
Guillaume Nodet

Mime
View raw message