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

aem001

13-04-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Andrew_Khoury

Employee

13-04-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.li...
  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)
 

Answers (0)