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).
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).
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.
Ans should be B & D