Introduced in Feature Pack 3

Updating the business object configuration file to use the extended data reader class

The business object configuration file, wc-dataextract-catalog-entry.xml, points to the default data reader class, CatalogEntryReaderMediator. You must update the configuration file to point to your new extended data reader class instead.

Before you begin

  1. Ensure that your business object configuration file for EPCMF data is already in the correct directory and configured for your site according to the instructions in Configuring the IBM Product Recommendations data extraction utility.
  2. Review the following topic to understand the contents of the business object configuration file for EPCMF data:

    Sample business object configuration file for EPCMF data

Procedure

  1. Open your business object configuration file for EPCMF data at the following path:
    • WebSphere Commerce DeveloperWCDE_installdir/samples/DataExtract/Catalog/CatalogEntry/wc-dataextract-catalog-entry.xml
    • WebSphere Commerce EnterpriseWebSphere Commerce - ExpressWebSphere Commerce ProfessionalWC_installdir/samples/DataExtract/Catalog/CatalogEntry/wc-dataextract-catalog-entry.xml
  2. Locate the following line of code, which specifies the data reader class that the utility uses:
    <_config:DataReader className="com.ibm.commerce.catalog.dataload.datareader.CatalogEntryReaderMediator" pageSize="700" >
  3. Replace the className value with the name of your extended data reader class, as shown here:
    <_config:DataReader className="com.ibm.commerce.catalog.dataload.datareader.ExtCatalogEntryReaderMediator" pageSize="700" >
  4. Save and close the configuration file.
  5. Test your customization by running the data extraction utility and viewing the EPCMF file that contains your category-level SKUs. For more information, see Running the IBM Product Recommendations data extraction utility.