Which two options are necessary to ensure that the other bundles can reference that OSGi service?

Posted by: Pdfprep Category: AD0-E103 Tags: , ,

A developer is working on a complex project with multiple bundles. One bundle provides an OSGi service for other bundles.

Which two options are necessary to ensure that the other bundles can reference that OSGi service? (Choose two.)
A . The bundles consuming the service need to import the fully qualified name of the service interface.
B . The service needs to correctly declare metatype information.
C . The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
D . The bundle providing the service needs to contain an adequate SCR descriptor file.
E . The bundle providing the service needs to export the java package of the service interface.

Answer: C,E

Leave a Reply

Your email address will not be published.