felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Driessen" <thomas.driessen...@gmail.com>
Subject Re[2]: Adding service programmatically so SCR sees it
Date Wed, 10 Jan 2018 11:56:28 GMT
Thank you for this fast answer.

inspect cap service

with grep did the trick!

------ Originalnachricht ------
Von: "Neil Bartlett" <njbartlett@gmail.com>
An: "users" <users@felix.apache.org>; "Thomas Driessen" 
Gesendet: 10.01.2018 12:46:38
Betreff: Re: Adding service programmatically so SCR sees it

>The SCR commands are only aware of Components, as defined by the DS
>When you register a service using BundleContext#registerService, what 
>have created is not a Component, but only an entry in the service 
>Not all services are component and, incidentally, not all components
>provide services.
>The command you are looking for is "inspect". You can use this to list 
>provided services of bundle id N by typing:
>    inspect cap service N
>Where 'cap' is short for 'capability', i.e. provided rather than 
>If you omit the bundle id then it will list all services of all 
>there will be a lot.
>On Wed, Jan 10, 2018 at 11:41 AM, Thomas Driessen <
>thomas.driessen.td@gmail.com> wrote:
>>I had to write my own extender and am adding services via
>>When I type "list" into gogo shell, these services are not listed.
>>As the "list" command is provided by SCR I guess that SCR must be made
>>aware of my service in order to list it.
>>Is there a way to make SCR aware of services that I registered
>>If not, are there other commands to get a list of registered services?
>>Kind regards,

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message