Deploying from Alfresco WCM to DM repository

Starting from Alfresco 3.3 version onwards, the WCM deployment facilities have been enhanced to add an additional deployment target. This additional deployment receiver allows the WCM content, authored and stored in Staging Sandbox, to be deployed to local and remote Alfresco repositories (Alfresco DM) as shown in the following figure.

The DM Deployment Target receives a deployment from an Alfresco WCM authoring environment and puts the content into the workspace spaces store where it can be used to support a dynamic website. This feature provides greater flexibility in moving an approved staging content from WCM to DM (Document Management). The Alfresco Deployment Receiver is configured as a sub-system, and a new Data Dictionary folder Web Deployed is configured by default as the deployment target.

Deploying from Alfresco WCM to DM repository

Setting up Alfresco DM as the deployment target

In order to set up Alfresco DM as the deployment target, you will have to edit the global properties file and then restart Alfresco.

Go to the /tomcat/shared/classes/ folder, open the alfresco-global.properties file, and add the following two lines:

deployment.dmr.consolidate=true deployment.dmr.name=alfresco

Now restart Alfresco to activate the deployment target.

The DM Deployment Target is a target that is registered with the repository-based WCM Deployment Engine. By default, its target name is "alfresco". Although of course, this can be changed through the configuration deployment.dmr.name.

The authoring environment for a WCM web project consists of a set of related AVM stores. The different stores have a naming convention for their store names. The consolidate flag (deployment.dmr.name=true) says to deploy all of these related stores to the same location. If it is turned off by setting deployment.dmr.consolidate to false, there will be a separate path for each store and content will be duplicated in the DM store.

Deploying to DM

Go to the Alfresco WCM web project and configure the DM deployment receiver. The following are the steps to configure the DM deployment receiver from Alfresco WCM Project.

  1. Navigate to Company Home | Web Projects | <web project name>.
  2. Select Edit Web Project Settings from the Action menu.
  3. Click on Next to reach the Configure Deployment Servers window.
  4. Click on the Add Deployment Receiver link and fill up the following values in the form:

    Type = Live Server

    Display Name = [Some Name]

    Transport Name = default

    Host = [localhost for local server or enter host name or IP address for external server]

    Port = 50500

    Username = Target Alfresco DM username

    Password = Target Alfresco DM password

    Target Name = alfresco

  5. Click on the Add button and then the Finish button.
  6. Now go to that WCM project's Staging Sandbox and deploy a snapshot to the new DM target.

If you log in to Target Alfresco DM and go to the Company Home space, you will notice a new project folder in the Company Home | Web Deployed space as shown in the following screenshot:

Deploying to DM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset