接続の確立
JDBC データソースの作成
Java アプリケーションから接続するJDBC データソースを作成できます。CData JDBC Driver for Adobe Experience Manager に基づくJDBC データソースの作成は、3つの基本ステップで構成されます。
- ドライバーのJAR ファイルをクラスパスに追加します。JAR ファイルはインストールディレクトリの[lib]サブフォルダ内にあります。.lic ファイルはJAR ファイルと同じフォルダ内に配置される必要があることに注意してください。
- ドライバークラスを入力します。次に例を示します。
cdata.jdbc.adobeexperiencemanager.AdobeExperienceManagerDriver
- JDBC URL を入力します。次に例を示します。
jdbc:adobeexperiencemanager:URL=http://localhost:4502/crx/server;User=admin;Password=admin; or jdbc:cdata:adobeexperiencemanager:URL=http://localhost:4502/crx/server;User=admin;Password=admin;
上記の2つ目の形式は、同じURL 形式を使用しているドライバー間でアプリケーションに競合がある場合は、CData ドライバーを使用していることを確認するために常に使用できます。URL は "jdbc:adobeexperiencemanager:" または"jdbc:cdata:adobeexperiencemanager:" のいずれかから始まり、任意の接続プロパティの名前と値のペアをセミコロン区切りで入力します。
Connecting to Adobe Experience Manager JCR Repository
This connection allows you to access content stored in an Adobe Experience Manager (AEM) JCR repository using WebDAV. The JCR (Java Content Repository) is the underlying storage system used by AEM to manage content nodes, properties, and metadata. You can connect to both local AEM instances and cloud-based AEM environments.
- Set the URL to the WebDAV-enabled JCR server.
- Local development: http://localhost:4502/crx/server
- AEM as a Cloud Service: https://XXXX-pXXXX-eXXXX.adobeaemcloud.com/crx/server
- Depending on the AuthScheme used:
Once the connection is configured, you can query JCR nodes and properties exposed through the WebDAV endpoint using standard SQL queries. Ensure that the configured user has sufficient permissions to access the required content paths in the AEM repository.