To optimize the use of CQ WCM and CQ DAM it is possible to integrate them so that digital assets within CQ DAM can be accessed from CQ WCM:
CQ WCM and CQ DAM are installed separately.
Java RMI (remote method invocation) is used so that CQ WCM can assess the service (and therefore the digital assets) provided by CQ DAM.
The following details how to integrate an existing installation of CQ DAM into CQ5 WCM.
In this scenario CQ WCM and CQ DAM will be installed separately. The integration will result in a new tab in the CQ WCM content finder that allows you to find and use media from DAM.
CQ DAM has to be mounted as a virtual repository for ALL author and publish installations (independently if in a cluster). See the CRX documentation for further information.
Install and start CQ5 WCM. See the section called “How to Install CQ WCM Author and Publish Instances using Quickstart” for further information.
Create a mount point in the repository.
Open the CRX explorer.
/etc/mnt/dam(see the code sample in step 7.b). The new nodes
/damshould be of type sling:Folder.
Mixins...add mix:referenceable to
Integrate CQ DAM functionality.
Copy the file
/libs/wcm/extensions/contentfinderby using WebDAV.
Enable RMI in the CRX used by CQ DAM.
Configure the RMI configuration for the Repository Servlet; set the port to 8303.
<!-- RMI configuration --> <init-param> <param-name>rmi-port</param-name> <param-value>8303</param-value> <description>The RMI port for registering the repository in the RMI Registry. If equals 0, the default port is used. Omit this parameter to disable RMI server entirely. </description> </init-param>
Configure CQ DAM as the virtual repository for CQ5 WCM.
CQ DAM has an issue if it is installed in a path containing space characters.
In such a case you have to add the JVM Property -Djava.rmi.server.useCodebaseOnly=true as the first parameter to CQ5, when DAM is mounted as a virtual repository in CQ5.
In the Repository Servlet definition replace the following (either comment out, or remove):
with the following configuration:
<servlet-class>com.day.crx.mount.virtual.VirtualRepositoryStartupServlet</servlet-class> <init-param> <param-name>primaryWorkspace</param-name> <param-value>crx.default</param-value> </init-param> <!-- virtual DAM repository --> <init-param> <param-name>mount.crx.default@rmi://127.0.0.1:8303/crx</param-name> <param-value>/etc/mnt/dam</param-value> </init-param>
Make sure that:
the port in
rmi://127.0.0.1:8303matches the port used in step 5.b (Enable RMI in the CRX used by CQ DAM).
the mount point
/etc/mnt/dammatches that specified in step 2.b (Create a mount point in the repository).
A new tab in the content finder allows you to find and use your media from CQ DAM: