Updating the WebSphere Commerce configuration file
Many aspects of the WebSphere Commerce runtime application are configured in an XML file. This XML file is inside the WebSphere Commerce Java Platform, Enterprise Edition EAR.
The WebSphere Commerce configuration file, wc-server.xml, is located within the following directory:
- WC_eardir/xml/config/
- workspace_dir\WC\xml\config\
- Option A: Use the GUI. For instructions on how to use the GUI, see Modifying a WebSphere Commerce instance.
- Option B: Edit manually.
- Edit the file.
Modify the master copy of the file per whatever instructions you are following. The master configuration file that is managed by the Configuration Manager can be found at the following location:
- WC_installdir /instances/instance_name/xml/instance_name.xml
- WC_userdir/instances/instance_name/xml/instance_name.xml
- Deploy the file to the WebSphere Commerce EAR.
After manually changing the master configuration file, ensure that you properly deploy it to the WebSphere Commerce Java Platform, Enterprise Edition application that is running on WebSphere Application Server. For detailed steps, see Propagating changes to the WebSphere Commerce configuration file.
- Edit the file.
- Ensure server1 is started successfully before you modify instance-specific properties in Configuration Manager.
- The wc-server.xml file is also updated if you run the setdbtype command to configure the database type that is used with WebSphere Commerce. The file is updated with the newest database information. If you are copying and moving files, you might need to rerun setdbtype to update the database information.
- Edit the file workspace_dir\WC\xml\config\wc-server.xml
- Republish the WebSphere Commerce application.