Change the workspaces locking policy

Before deciding on the locking policy to use on your authoring server, review the Considerations when selecting a locking policy topic carefully to understand the implications of each locking policy.

Do not change the workspaces locking policy if you have uncommitted data in any of your workspaces. This can cause undefined behavior with the uncommitted data.

If you are changing the workspaces locking policy in WebSphere Commerce Developer, follow the instructions in Changing the workspaces locking policy in WebSphere Commerce Developer.

To change the workspaces locking policy:

  1. Copy the following file to a temporary location:

    • WC_eardir/xml/content-management/wc-resource-containers.xml

    This file should never be directly modified. For more information, refer to XML configuration directory.

  2. Open the temporary copy of the file in a text editor.

  3. Find the following text
    <wc:DefaultConfiguration
       lockingPolicy="Workspaces_locking_policy"
       enableDynamicWorkspaceCreation="false"
       readPrefixName="WCR"
       writePrefixName="WCW"
      />
    

  4. For the locking policy you want to enable, replace Workspaces_locking_policy with the policy class shown below the locking policy name:

    Workspaces locking

    com.ibm.commerce.context.content.locking.WorkspaceLockingPolicy

    Task group locking

    com.ibm.commerce.context.content.locking.TaskGroupLockingPolicy

    Task locking

    com.ibm.commerce.context.content.locking.TaskLockingPolicy

    No locking

    com.ibm.commerce.context.content.locking.NoLockingPolicy

  5. Save your changes.

  6. Update WebSphere Commerce with the updated file. See the Updating applications topic in the WebSphere Application Server Information Center for instructions. Ensure that you follow the instructions for updating a single file.

    You will need the following information:

    Enterprise application name

    WC_enterprise_application

    Relative path to file

    xml/content-management/wc-resource-containers.xml

  7. Stop and restart WebSphere Commerce.

Related concepts

Workspaces
Workspaces locking policies

Related tasks

Create an authoring server
Start and stopping WebSphere Commerce
Change the workspaces locking policy


Related Reference


Considerations when selecting a locking policy