Bundle dependency | Community
Skip to main content
Level 9
October 16, 2015
Solved

Bundle dependency

  • October 16, 2015
  • 3 replies
  • 1162 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Runal_Trivedi

Bundle Dependency:

Bundle Dependency Resolutions:

- Runal

3 replies

smacdonald2008
Level 10
October 16, 2015

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. 

Runal_Trivedi
Runal_TrivediAccepted solution
Level 6
October 16, 2015

Bundle Dependency:

Bundle Dependency Resolutions:

- Runal

askdctmAuthor
Level 9
October 16, 2015

Hi Runal/Scott,

Thanks a lot for your reply.