cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natalius <t...@mxe.fr>
Subject Re: DOSGI and service properties
Date Fri, 28 Mar 2014 13:21:03 GMT
I filter on my service

Le 28.03.2014 14:13, Jean-Baptiste Onofré a écrit :
> But you filter on your service or the configadmin service ?!
> 
> On 03/28/2014 02:11 PM, Natalius wrote:
>> Ok so why when I filter a service, created by a ManagedServiceFactory,
>> by its properties without use DOSGI it works.
>> 
>> 
>> Le 28.03.2014 13:47, Jean-Baptiste Onofré a écrit :
>>> Yes, but it's a different thing.
>>> 
>>> Again, I think you mix both.
>>> 
>>> DOSGi is *only* OSGi service layer. So it will expose the service 
>>> with
>>> the property (in your example the serviceProperties map).
>>> 
>>> It's already what I said on the Karaf mailing list:
>>> ConfigAdmin/ManagedServiceFactory is different from the properties of
>>> the service itself.
>>> 
>>> If you want to use the ConfigAdmin properties as service properties,
>>> it's up to you to "inject" in the serviceProperties map.
>>> 
>>> Regards
>>> JB
>>> 
>>> On 03/28/2014 01:44 PM, Natalius wrote:
>>>> Le 28.03.2014 13:40, Jean-Baptiste Onofré a écrit :
>>>>> Where are the other properties what you want to use in the filter ?
>>>> The other properties are configured by a cfg file because I use a
>>>> ManagedServiceFactory
>>>> 
>>>> 
>>>>> Regards
>>>>> JB
>>>>> 
>>>>> On 03/28/2014 12:53 PM, Natalius wrote:
>>>>>> So :
>>>>>> 
>>>>>> final Dictionary<String, Object> serviceProperties = new
>>>>>> Hashtable<String, Object>();
>>>>>> 
>>>>>> serviceProperties.put("service.exported.interfaces", "*");
>>>>>> 
>>>>>> context.registerService(Service.class.getName(), new 
>>>>>> ServiceImpl(),
>>>>>> serviceProperties);
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Le 28.03.2014 12:36, Christian Schneider a écrit :
>>>>>>> How do you export your service? Can you provide a snippet of
the
>>>>>>> code?
>>>>>>> 
>>>>>>> Christian
>>>>>>> 
>>>>>>> 
>>>>>>> On 28.03.2014 11:25, Natalius wrote:
>>>>>>>> I searched but I found nothing on this subject.
>>>>>>>> When I use Cellar-DOSGI I can't see my service properties
so the
>>>>>>>> problem is DOSGI or Cellar.
>>>>>>>> 
>>>>>>>> Le 28.03.2014 10:54, Jean-Baptiste Onofré a écrit :
>>>>>>>>> Did you take a look on the DOSGi spec ?
>>>>>>>>> 
>>>>>>>>> Regards
>>>>>>>>> JB
>>>>>>>>> 
>>>>>>>>> On 03/28/2014 10:32 AM, Natalius wrote:
>>>>>>>>>> Hi,
>>>>>>>>>> 
>>>>>>>>>> I would like to filter a remote service by its service

>>>>>>>>>> properties
>>>>>>>>>> but
>>>>>>>>>> DOSGI not propagate this properties in client side,
is it 
>>>>>>>>>> exact ?
>>>>>>>>>> So how
>>>>>>>>>> I can do that ?
>>>>>>>>>> 
>>>>>>>>>> Thanks

Mime
View raw message