webFeedLoad utility
The webFeedLoad utility facilitates the integration of a web feed with WebSphere Commerce.When you run the web feed utility, the following tables are updated: ATCHTGT,
ATCHTGTDSC, ATCHAST (use to verify the time created and time updated details), CMFILE (use to verify the UPLOAD_TIMESTAMP details), CMFILEDIR, CMSMALLFILE, CMLARGEFILE
Set the logging level
Set the logging level (.INFO, FINER or FINEST) and the location of the log files in the workspace_dir/WC/xml/config/dataload/logging.properties file, for example:
===================================================================================================== # Default global logging level, FINEST .level=INFO # ConsoleHandler java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=com.ibm.commerce.foundation.dataload.logging.DataLoadConsoleFormatter # FileHandler java.util.logging.FileHandler.level=FINEST # Naming style for the output file: java.util.logging.FileHandler.pattern=../logs/wc-dataload.log ====================================================================================================
File permissions
- Ensure that all files on the Content Management System (CMS) system are owned by wasuser.
- Run the WebFeedLoad.sh utility as wasuser.
Parameter values
- configFile
- Required. The full file path for the utility's configuration file. An error is thrown if this parameter is not specified.
- waspath
- Required: The full file path for WC_eardir.
(Developer) This parameter is not required.
- XmlValidation
- Optional: Specify true or false.
- GenerateDataLoadConfigOnly
- Optional: Specify true or false.
- LoadOrder
- Optional: A comma separated list of items to load.
- ConsoleHandler.level
- Optional: Provide the level name.
- package_name.level=level name
- Optional: Where level name is one of OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL.
Command syntax
Runtime environment./webFeedLoad.sh /fullpath/Web-feed-config.xml –Dwaspath=pathToWC.ear(AIX) (Linux)
webFeedLoad ../bin/sample/webfeedconfig.xml -Dwaspath=../../AppServer/demo/installedApps/WC_EAR -DXmlValidation=falseDevelopment environment
webFeedLoad.bat /fullpath/Web-feed-config.xml
Running the utility from the Administration Console
For information about configuring the scheduler to run the web feed utility, see Scheduling a site-level job.
Escape special characters in the parameters, for example use the XML entities for ampersands: configFile=C:\temp\config_file.xml& XmlValidation=true&errorLogPath=C:\temp&ConsoleHandler.Level=FINEST&FileHandler.Level=INFO.
We can specify the following parameters:
- configFile
- Required: The path of the web feed configuration file.
- XmlValidation
- Optional: Enable or disable XML validation.
- errorLogPath
- Optional: The path of the generated error log file.
- ConsoleHandler.Level
- Optional: Sets the logging level for the console handler.
- FileHandler.Level
- Optional: Sets the logging level for the file handler.
- LoadOrder
- Optional: Defines the load order.