loading table of contents...

3.4.14. Deploying the CoreMedia Catalog Data

The Sample archive file contains CoreMedia store data that can be used together with the CoreMedia CMS Blueprint demo data. Part of the data can be imported via SAR files, the other via data load.

Publishing SAR Files

This content can be found in the following folders below the sar/ folder:

  • esite-base

  • esite-base-ws

  • esite-marketing

  • CMSites

You have to publish these data into the WCS as described below. See the IBM documentation at https://www.ibm.com/support/knowledgecenter/SSZLC2_8.0.0/com.ibm.commerce.admin.doc/tasks/tpbpbst.htm for more details.

  1. Start the WCS server.

  2. Pack the SAR-INF and WEB-INF subfolders of CMSites into a Zip file cmsites.sar. Change the file extension of the Zip file to ".sar".

  3. Publish the cmsite.sar file to the WCS, following the IBM documentation.

  4. Adapt the database settings in the environment configuration files wc-dataload-env.xml and wc-dataload-env-ws.xml of each esite (not for cmsite) to the values of your database. You will find the files below: sar/<siteName>/WEB-INF/stores/PerfectChef_Catalog[_WS]/data/dataload.

  5. In the files sar/esite-base/WEB-INF/stores/PerfectChef_Catalog/data/ibm-wc-load.xml and sar/esite-base-ws/WEB-INF/stores/PerfectChef_Catalog_WS/data/ibm-wc-load.xml adapt the links to the location of the other SAR files in the task element with name "sarFileDeploy".

    <task name="sarFileDeploy">
          <param name="storeArchiveFilename" value="/home/wcuser/sars/esite-marketing.sar"/>

    Example 3.5. Default link setting


  6. Pack the SAR-INF and WEB-INF subfolders of each esite folder into a Zip file named after the esite folder. For example, esite-base.zip. Change the file extension of the three Zip files to ".sar".

  7. Publish the esite-base.sar into the WCS, using the publishstore tool. The other two files are automatically imported.

Importing Data via Data Load

See the IBM WebSphere Commerce documentation https://www.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.data.doc/concepts/cmlbatchoverview.htm for more details about data load.

  1. Stop the IBM WebSphere Commerce server in the IBM RAD environment.

  2. Adapt the database settings in the Data Load environment configuration files (SAMPLEDATA-ZIP\workspace\DataLoad\dataload\common\wc-dataload-env[-<siteName>].xml) from the Sample archive Zip file to the settings of your WebSphere database.

    You can retrieve your database settings from the IBM RAD environment configuration file WC/xml/config/wc-server.xml, at the following XML element:

    <InstanceProperties>
       <Database>
         <DB>
  3. Use the Data Load utility to load the data for all sites. Give the absolute path to the wc-dataload.xml file, for example c:\lc-demo-data\workspace\DataLoad\dataload\common\AuroraESite\wc-dataload.xml.