karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natalius <t...@mxe.fr>
Subject Re: cellar and service properties
Date Mon, 17 Mar 2014 14:48:20 GMT
Karaf version : 2.3.4
Cellar version : 2.3.2

Le 17.03.2014 15:42, Jean-Baptiste Onofré a écrit :
> Catcha,
> 
> It's clear now. What's the version of Karaf and Cellar ?
> 
> Regards
> JB
> 
> On 03/17/2014 03:40 PM, Natalius wrote:
>> Ok, here are the steps I followed:
>> 1. I created two nodes (node1 and node2) ;
>> 2. I installed Cellar and Cellar-DOSGi on the two nodes ;
>> 3. I disabled the bundle sync on the two nodes ;
>> 3. I installed a bundle creating a service on the node2. I use an
>> implementation of the interface ManagedServiceFactory ;
>> 4. I installed a bundle consuming the service on the node1. I use a
>> ServiceTracker for this and I would like to filter by service 
>> properties
>> "reference.getPropertyKeys()".
>> 
>> Currently, my bundles are deployed with success, I see my service with
>> command "service-list" and I see the content of my cfg file with 
>> command
>> "config:list" on all nodes.
>> 
>> This helps you to understand my situation ?
>> 
>> 
>> Le 17.03.2014 15:21, Jean-Baptiste Onofré a écrit :
>>> It's what I said next week: you are miunderstanding the differences
>>> between config and service properties.
>>> 
>>> Please, try to explain cleanly what you want to do:
>>> 
>>> - could you share the bundle exposing the service and the properties
>>> on the service ?
>>> - same on bundle using service
>>> 
>>> I guess you use Cellar DOSGi, right ?
>>> 
>>> Providing your step by step usage may help me.
>>> 
>>> Thanks,
>>> Regards
>>> JB
>>> 
>>> On 03/17/2014 03:18 PM, Natalius wrote:
>>>> Ok, I filters the sync but the properties are always bad. When I use 
>>>> the
>>>> command config:list I see my properties on all nodes but when I use 
>>>> the
>>>> instruction reference.getPropertyKeys() I don't see my properties. 
>>>> Why ?
>>>> I don't understand
>>>> 
>>>> Le 14.03.2014 16:30, jb@nanthrax.net a écrit :
>>>>> Cellar doesn't sync the deploy folder.
>>>>> 
>>>>> The cfg file should go into the etc folder (and it will be sync).
>>>>> To filter the sync, you can use the blacklist/whitelist (in
>>>>> etc/org.apache.karaf.cellar.groups.cfg).
>>>>> 
>>>>> Regards
>>>>> JB
>>>>> 
>>>>> On 2014-03-14 16:20, Natalius wrote:
>>>>>> Le 14.03.2014 11:31, Jean-Baptiste Onofré a écrit :
>>>>>> No I create a cfg file in the deploy folder (not etc) and I not 
>>>>>> see
>>>>>> the config on all nodes because my nodes are not in the same 
>>>>>> group. Is
>>>>>> it a problem ? I would libe deploy my service only on particular

>>>>>> nodes
>>>>>> and use it on another nodes.
>>>>>> 
>>>>>>> Hi Fédéric,
>>>>>>> 
>>>>>>> I think you mix service properties and configuration.
>>>>>>> 
>>>>>>> Cellar config sync the configuration (from configadmin), only

>>>>>>> some
>>>>>>> properties are filtered (for instance the felix.fileinstall
>>>>>>> properties
>>>>>>> as the location may be different on nodes).
>>>>>>> 
>>>>>>> So it should work straight forward.
>>>>>>> 
>>>>>>> Just to be sure to understand: you create a cfg file in the etc
>>>>>>> folder
>>>>>>> on one node. So you should be able to see the config (config:list
>>>>>>> "(service.pid=yourconfig)" on all nodes. Is it the case ?
>>>>>>> Do you see the cfg file created on the different nodes ?
>>>>>>> The nodes should be in the same cluster group.
>>>>>>> 
>>>>>>> Regards
>>>>>>> JB
>>>>>>> 
>>>>>>> On 03/13/2014 05:16 PM, Frédéric POULET wrote:
>>>>>>>> Yes, I use a configuration file and a class which implements
>>>>>>>> ManagedServiceFactory.
>>>>>>>> 
>>>>>>>> -----Message d'origine-----
>>>>>>>> De : jb@nanthrax.net [mailto:jb@nanthrax.net]
>>>>>>>> Envoyé : jeudi 13 mars 2014 17:12
>>>>>>>> À : user@karaf.apache.org
>>>>>>>> Objet : Re: cellar and service properties
>>>>>>>> 
>>>>>>>> Hi Frédéric,
>>>>>>>> 
>>>>>>>> What do you mean by "personal properties" ?
>>>>>>>> You mean stuff like <service-properties/> on DOSGi
services ?
>>>>>>>> 
>>>>>>>> Regards
>>>>>>>> JB
>>>>>>>> 
>>>>>>>> On 2014-03-13 17:10, Frédéric POULET wrote:
>>>>>>>>> Hi,
>>>>>>>>> 
>>>>>>>>> I can't see the personal properties of my remote services,
why 
>>>>>>>>> ?
>>>>>>>>> 
>>>>>>>>> Thank you for your help

Mime
View raw message