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.
Start the WCS server.
Pack the
SAR-INF
andWEB-INF
subfolders ofCMSites
into a Zip filecmsites.sar
. Change the file extension of the Zip file to ".sar".Publish the
cmsite.sar
file to the WCS, following the IBM documentation.Adapt the database settings in the environment configuration files
wc-dataload-env.xml
andwc-dataload-env-ws.xml
of each esite (not forcmsite
) to the values of your database. You will find the files below:sar/<siteName>/WEB-INF/stores/PerfectChef_Catalog[_WS]/data/dataload
.In the files
sar/esite-base/WEB-INF/stores/PerfectChef_Catalog/data/ibm-wc-load.xml
andsar/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
Pack the
SAR-INF
andWEB-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".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.
Stop the IBM WebSphere Commerce server in the IBM RAD environment.
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>
Use the Data Load utility to load the data for all sites. Give the absolute path to the
wc-dataload.xml
file, for examplec:\lc-demo-data\workspace\DataLoad\dataload\common\AuroraESite\wc-dataload.xml
.