Search

Chapter 20. service

download PDF

20.1. service:list

20.1.1. Description

Lists OSGi services.

20.1.2. Syntax

service:list [options] [objectClass]

20.1.3. Arguments

NameDescription

objectClass

Name of service objectClass to filter for

20.1.4. Options

NameDescription

-a

Shows all services. (By default Karaf commands are hidden)

--help

Display this help message

-n

Shows only service class names

20.2. service:wait

20.2.1. Description

Wait for a given OSGi service.

20.2.2. Syntax

service:wait [options] service

20.2.3. Arguments

NameDescription

service

The service class or filter

20.2.4. Options

NameDescription

-t, --timeout

timeout to wait for the service (in milliseconds, negative to not wait at all, zero to wait forever)

--help

Display this help message

-e, --exception

throw an exception if the service is not found after the timeout

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.