The SCR commands are only aware of Components, as defined by the DS
specification.

When you register a service using BundleContext#registerService, what you
have created is not a Component, but only an entry in the service registry.
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 the
provided services of bundle id N by typing:

    inspect cap service N

Where 'cap' is short for 'capability', i.e. provided rather than consumed.
If you omit the bundle id then it will list all services of all bundles...
there will be a lot.

Neil

On Wed, Jan 10, 2018 at 11:41 AM, Thomas Driessen <
thomas.driessen...@gmail.com> wrote:

> Hi,
>
> I had to write my own extender and am adding services via
>
> bundleContext.registerService(...)
>
> 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
> programmatically?
>
> If not, are there other commands to get a list of registered services?
>
> Kind regards,
> Thomas

Reply via email to