webFeedLoad utility

The webFeedLoad utility facilitates the integration of a web feed with WebSphere Commerce. You can run the utility from the command line, or by scheduling a site-level job.

The utility is in the following directory:
  • LinuxAIXWindowsWC_installdir/bin
  • WebSphere Commerce DeveloperWCDE_installdir/bin
When you run the web feed utility, the following tables are updated:
Managed files
ATCHTGT, ATCHTGTDSC, ATCHAST
URL attachments
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 WC_eardir/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
====================================================================================================
LinuxAIX

File permissions

  • Ensure that all files on the Content Management System (CMS) system are owned by wasuser.
  • Run the WebFeedLoad.sh utility as wasuser.

Command syntax



LinuxAIX
./webFeedLoad.sh /fullpath/Web-feed-config.xml –Dwaspath=pathToWC.ear
Windows
webFeedLoad.cmd /fullpath/Web-feed-config.xml –Dwaspath=pathToWC.ear
WebSphere Commerce Developer
webFeedLoad.bat /fullpath/Web-feed-config.xml
For example, LinuxAIX
webFeedLoad ../bin/sample/webfeedconfig.xml -Dwaspath=../../AppServer/demo/installedApps/WC_EAR -DXmlValidation=false

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.

WebSphere Commerce DeveloperThis 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.

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.

You 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.