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

A developer is working on a complex project with multiple bundles. One bundle provides an OSGiservice 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 bundle providing the service needs to contain an adequate SCR descriptor file.
C . The bundle providing the service needs to export the java package of the service
interface.

D . The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
E . The service needs to correctly declare metatype information.

Answer: A,C

Latest AD0-E116 Practice Questions with 94 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments