OSGI Apache Felix Console "Services" vs "Components" tab. | Community
Skip to main content
April 13, 2020
Solved

OSGI Apache Felix Console "Services" vs "Components" tab.

  • April 13, 2020
  • 1 reply
  • 2392 views

When health checking my successfully installed bundle I will check the OSGI Apache Felix Console. I was told to also check the OSGI Services and OSGI Components tabs. Is see my services exist in both areas.

 

What is the difference between OSGI Services and OSGI Components tabs within the OSGI Apache Felix Console? 

OSGI Services filters does not work with my FQCN; how does this work?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by akhoury
  1. What is the difference between OSGI Services and OSGI Components tabs within the OSGI Apache Felix Console? 
    An OSGi Component can implement one or more OSGi services.  It sounds like in your case, you had the OSGi Component class defined as its own service.  Components can have configurations associated with them.
    See the OSGi Declarative Services Specification for the formal definition (in the generated bundle jar an XML file defines the configuration):
    https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html
    Components also have a life cycle - which the components (and Configurations) tab lets you interact with:
    https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-component.lifecycle
  2. OSGI Services filters does not work with my FQCN; how does this work?
    The syntax for OSGi Filters is similar to LDAP filters.  See here:
    https://stackoverflow.com/questions/11151376/search-osgi-services-by-properties   
    https://osgi.org/javadoc/r2/org/osgi/framework/Filter.html
    For example:
    (objectClass=com.adobe.aem.services.MyService)
 

1 reply

akhoury
Adobe Employee
akhouryAdobe EmployeeAccepted solution
Adobe Employee
April 13, 2020
  1. What is the difference between OSGI Services and OSGI Components tabs within the OSGI Apache Felix Console? 
    An OSGi Component can implement one or more OSGi services.  It sounds like in your case, you had the OSGi Component class defined as its own service.  Components can have configurations associated with them.
    See the OSGi Declarative Services Specification for the formal definition (in the generated bundle jar an XML file defines the configuration):
    https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html
    Components also have a life cycle - which the components (and Configurations) tab lets you interact with:
    https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-component.lifecycle
  2. OSGI Services filters does not work with my FQCN; how does this work?
    The syntax for OSGi Filters is similar to LDAP filters.  See here:
    https://stackoverflow.com/questions/11151376/search-osgi-services-by-properties   
    https://osgi.org/javadoc/r2/org/osgi/framework/Filter.html
    For example:
    (objectClass=com.adobe.aem.services.MyService)