March 21, 2020
Estimated Post Reading Time ~

Steps to integrate DOJO with AEM

Using DOJO as AEM Front end
There are some cases where AEM needs to be integrated with DOJO.

What is DOJO
DOJO is a Javascript framework used to develop interactive, responsive websites, and mainly used as a UI tool.

DOJO can be integrated with AEM through an interaction Layer. AEM exposes many of the methods to integrate with any third-party applications. This enables applications to work seamlessly when integrated. A JSON layer is used to integrate AEM with DOJO in this analysis.

DOJO with AEM - Arch view
The architectural diagram is shown below.


OSGi (Open Service Gateway Initiative) is the Java framework that runs on AEM and generates the JSON Layer. The generated JSON layer is used to interact with the DOJO application.

Once the component is saved, OSGI runs in AEM which helps to generate a JSON. A Java service used to generate OSGI Bundles needs to be created to generate JSON from the authored component.
Any format of JSON can be generated as per the DOJO requirement here. A sample JSON response is given below.

http://localhost:4502/content/home/_jcr_content/parsys/myothercomponent.data.json

Steps to integrate DOJO with AEM:
We need to move all DOJO Libraries to AEM.
DOJO related components and templates to be moved to the respective folder of AEM.

The page-level items are split into templates and components. The same DOJO structure needs to be replicated in AEM, wherein the page will be divided into header, body, footer components. The content section can hold any levels of other components. The page structure in AEM is shown below.

Any impact on AEM Project Maintenance with respect to DOJO

New versions of AEM are available so often. Upgrades can be done without many challenges since the front end is separated from the backend.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.