Adobe Experience Manager (AEM) is a comprehensive content management solution for building websites, mobile applications, and forms. One of its core capabilities is the ability to create databases to manage and store content effectively. This article will guide you through the process of creating a database in AEM, explaining each step in detail.
- AEM uses a Java Content Repository (JCR) as a database to store content.
- The creation of a database in AEM involves creating a content structure in the JCR.
- Using the CRXDE Lite, an integrated development environment in AEM, you can interact with the JCR.
- The process involves creating a node, which acts as a container for the data, and properties, which are key-value pairs holding the data.
Understanding the JCR
AEM uses the Java Content Repository (JCR), a type of hierarchical database, for storing content. The JCR uses a tree-like structure, similar to a file system, which allows the storage and retrieval of data in a highly structured way.
Nodes and Properties
In the JCR, data is stored in nodes and properties. A node is a container for data, similar to a folder in a file system. Each node can have properties, which are key-value pairs, similar to the files in a folder. For example, a node might represent a user, with properties for the user’s name, email address, and password.
Accessing the JCR with CRXDE Lite
CRXDE Lite is an integrated development environment (IDE) included with AEM, which allows you to interact with the JCR directly. You can create, view, and edit nodes and properties using CRXDE Lite.
To access CRXDE Lite:
- Open AEM in your web browser.
/crx/deto your AEM URL. For example, if your AEM URL is
http://localhost:4502, the CRXDE Lite URL would be
Creating a Node
To create a database in AEM, you essentially create a structured arrangement of nodes and properties in the JCR. Let’s start by creating a node:
- In CRXDE Lite, navigate to the location where you want to create the node.
- Right-click and select
- Enter a name for the node and select a node type. For a general-purpose node, you can use the
OKto create the node.
Once you’ve created a node, you can add properties to it:
- Select the node in CRXDE Lite.
- In the
Propertiestab, click the
- Enter the name and value for the property. For the type, select the appropriate data type for the property value.
OKto add the property.
After you’ve made changes in CRXDE Lite, you need to save them:
- Click the
Save Allbutton in the toolbar. This saves all changes to the JCR.
Creating a database in AEM involves structuring content within the Java Content Repository, using nodes to represent data containers and properties for specific data points. By using AEM’s built-in tool, CRXDE Lite, you can easily interact with the JCR to create your database. Remember to save your changes after creating nodes and adding properties to ensure they are stored in the JCR.
I’m Kirill Efimov, an experienced AEM developer with over 10 years of experience in Java and web development. I’m skilled in developing AEM components, templates, workflows, and integrations with other systems, and I’m passionate about delivering high-quality solutions to my clients.
I also believe in knowledge-sharing and staying up-to-date with the latest developments in the industry. Through blog posts, tutorials, and speaking engagements, I’m committed to contributing to the AEM community and helping others overcome the challenges they may face in their AEM projects.