How to connect to Adobe Experience Manager Data from IntelliJ
The CData JDBC Driver for Adobe Experience Manager enables you to access Adobe Experience Manager as a JDBC data source, providing integration with rapid development tools in IDEs. This article shows how to use the data source configuration wizard to connect to Adobe Experience Manager data in IntelliJ.
Create a JBDC Data Source for Adobe Experience Manager
Follow the steps below to add the driver JAR and define connection properties required to connect to Adobe Experience Manager data.
- In the Data Sources window, right-click and then click Add Data Source -> DB Data Source.
In the Data Source Properties dialog that appears, the following properties are required:
- JDBC Driver Files: Click the button next to this menu to add the JDBC Driver file cdata.jdbc.adobeexperiencemanager.jar, located in the installation directory.
- JDBC Driver Class: In this menu, select cdata.jdbc.adobeexperiencemanager.AdobeExperienceManagerDriver from the list.
Database URL: Enter the connection URL in the JDBC URL property. The URL must start with jdbc:adobeexperiencemanager: and includes connection properties separated with semicolons.
The driver connects to Adobe Experience Manager (AEM) instances that expose the JCR repository over WebDAV. It supports both on-premises AEM and AEM as a Cloud Service deployments.
To establish a connection, set the following properties:
- URL: The WebDAV-enabled JCR server URL.
- AEM as a Cloud Service: https://author-pXXXXX-eXXXXX.adobeaemcloud.com/crx/server
- Local development: http://localhost:4502/crx/server
- User: Your AEM username.
- Password: Your AEM password.
Note: Tables are dynamically generated based on the JCR repository structure. Ensure that the configured user has sufficient permissions to access the required content paths in the AEM repository.
Built-in Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the Adobe Experience Manager JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.adobeexperiencemanager.jar
Fill in the connection properties and copy the connection string to the clipboard.
A typical JDBC URL is the following:
jdbc:adobeexperiencemanager:URL=https://author-p12345-e67890.adobeaemcloud.com/crx/server;User=admin;Password=admin;
- URL: The WebDAV-enabled JCR server URL.
Edit and Save Adobe Experience Manager Data
To discover schema information, right-click the data source you just created and click Refresh Tables. To query a table, right-click it and then click Open Tables Editor.