Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

aem001
Level 1
Level 1

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?

1 Accepted Solution
Andrew_Khoury
Correct answer by
Employee
Employee
  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)
 

View solution in original post

0 Replies
Andrew_Khoury
Correct answer by
Employee
Employee
  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)