How should a developer make sure that the bundle is installed on all environments?

A custom AEM application has a run time dependency to a third party OSGi bundle that is NOT included in out-of-the-box AEM. The third party dependency needs to be available for multiple applications and be upgraded separately from the custom AEM application.
How should a developer make sure that the bundle is installed on all environments?
A. Add the dependency to the third party bundle in the pom.xml of the project bundle.
B. Embed the third party bundle in the bundle that depends on it.
C. Embed the bundle in a content package to have it automatically deployed.
D. Declare the dependency correctly using a link to the OSGi Bundle Repository (OBR).

Download Printable PDF. VALID exam to help you PASS.

10 thoughts on “How should a developer make sure that the bundle is installed on all environments?

  1. Third party dependencies will generally be made available in content package form. In cases where OSGi bundles are already available, we will simply package those bundles into a package. In cases where an OSGi bundle is not available, we will wrap dependencies into OSGi bundles and then make a content package available for easy deployment.
    Answer is C

  2. Usually, we don’t have 3rd party lib wrapped in the package. Wrapping it in the build process but it’s overkill as you need to have artificial module just for this case. So D will do the job but as numerous drawbacks: is not scalable, we expose internal dependency to the whole OSGi subsystem.
    The usual practice is to embed it in the bundle manifest and deploy with our bundle. B Is correct.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.