9A0-384 Exam QuestionsBrowse all questions from this exam

9A0-384 Exam - Question 12


You have written an OSGi service with the class name com.acme.myapp.EmailUpdate, You only we this service to run on the publish instance. Which two configurations would run the service on the publish instance only? (Choose two).

Show Answer
Correct Answer: BCD

To ensure an OSGi service runs only on a publish instance, configurations should be placed under '/apps/myapp/config.publish/'. The node types are important: for OSGi configurations, 'sling:OsgiConfig' is the correct type. Therefore, the correct options are the ones that specify the correct path and node type: '/apps/myapp/config.publish/com.acme.myapp.EmailUpdate.config' with a node type of 'sling:OsgiConfig'. These specifications match options B and D.

Discussion

1 comment
Sign in to comment
heenamadanOptions: BD
Jun 28, 2020

Ans should be B & D