Objective

While deploying custom bundles in AEM, there are instances where the custom bundles depend upon the Out of the Box services in AEM. If the custom bundle attempts to start before the Out of the Box bundles, then there are the possibilities of rising some issues with the startup. The objective of this article is to provide a technique to avoid such an issue.

Environment

AEM 6.x

Answer

As per the principles of OSGi, the bundles do not define their own start level at the build-time; the administrator or agent that installs the bundle into the framework defines it. Therefore, one can adopt the following directory structure to define start level of the custom bundle

/apps/{project}/install/21

where 21 is the bundle version for the custom bundle.

For more details, refer to the related Apache Sling documentation.

Licencia na používanie tohto diela sa poskytuje v súlade s podmienkami licencie Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Na príspevky v sociálnych sieťach Twitter™ a Facebook sa nevzťahujú podmienky licencií Creative Commons.

Právne upozornenia   |   Zásady ochrany osobných údajov online