Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7075435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:10:37+00:00 2026-05-28T06:10:37+00:00

Under OSGi, what are the main differences between Components vs Services? As I understand

  • 0

Under OSGi, what are the main differences between Components vs Services?
As I understand it, all Services must be Components, but not all Components must be services.

What are the benefits of using one over the other with sample use cases?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:10:38+00:00Added an answer on May 28, 2026 at 6:10 am

    “Components” are less formally defined than services.

    A service is any object that is registered in the OSGi Service Registry and can be looked up using its interface name(s). The only prerequisite is that a service should implement some interface… any interface. For example I could register a runnable object under the java.lang.Runnable interface, and clients could look it up using that interface name.

    A “component” tends to be an object whose lifecycle is managed, usually by a component framework such as Declarative Services (DS), Blueprint or iPOJO. See this page on the OSGi Community Wiki for a discussion of the different component frameworks available.

    A component may have any of the following features, in combination or alone:

    • A component may be started and stopped; this would be considered an “active” component, though that is also an informal term. A component that doesn’t need to be started or stopped is called passive.
    • A component may publish itself as an OSGi service.
    • A component may bind to or consume OSGi services.

    In general, using a component framework is the easiest way to work with OSGi services because the framework will manage the binding to the services that you want to consume. For example you could say that your component “depends on” a particular service, in which case the component will only be created and activated when that service is available — and also it will be destroyed when the service becomes unavailable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled) As I understand
After many tests i concluded that the Log4j is not working under OSGI. I
Under Windows XP WPF true 3D content (which is usually displayed using the Viewport3D
Under what circumstances would this or would this not be safe? I have a
Under Linux, my C++ application is using fork() and execv() to launch multiple instances
I'm trying to create a standard osgi bundle under Eclipse Helios. To do so,
Under CF9, I'm converting SVGs to PNGs using the Batik (1.7) transcoder. The SVGs
Under normal circumstances to authenticate a user in AD, one sends AD the user's
Under the structure tab, when EXPORTing a database using phpmyadmin there is a check
I am using Eclipse CDT, with MinGW and under Windows XP, to developp a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.