Exam 9A0-384 All QuestionsBrowse all questions from this 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).

    Correct Answer: B, D

    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
heenamadanOptions: BD

Ans should be B & D