Expand my Community achievements bar.

SOLVED

Bundle dependency

Avatar

Level 9

Hi All,

1] What exactly does the term "Bundle dependency" mean?

2] How is Bundle dependency resolved.

Any thoughts/snippet of code would be helpful.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Bundle Dependency:

Bundle Dependency Resolutions:

- Runal

View solution in original post

3 Replies

Avatar

Level 10

Assume you have bundleA in AEM. Next assume that this bundle has a dependency on a Java API - for example -- say org.json.simple.JSONObject.

You can place this JSON API in another bundle in AEM - say bundleB. Now bundleA has a dependency on bundleB.

In this use case - you would need to deploy bundleB first and place it into an active state. Then you can deploy bundleA. 

To see this in action - read this community article:

https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

You deploy 2 bundles in this article. 

Avatar

Correct answer by
Community Advisor

Bundle Dependency:

Bundle Dependency Resolutions:

- Runal

Avatar

Level 9

Hi Runal/Scott,

Thanks a lot for your reply.