Administer > Deploy > Publish a store archive > Publishing a store archive using the Publish wizard > Add a new store archive to the Publish wizard
Publish store archives in a clustered environment
This topic applies only to publishing on horizontal cluster members. When WebSphere Commerce is clustered, the WebSphere Application Server deployment manager automatically distributes the WebSphere Commerce EAR file to each node in the cluster. The EAR file includes all file assets required to run the WebSphere Commerce application. However, since the Store Archive files (SARs) contain content that might be added to the WebSphere Commerce EAR file, they are not included in the WebSphere Commerce enterprise application EAR file.
To publish starter stores in a cluster, copy the stores to each node of the cluster.
To ensure that the SAR files are copied from the reference node properly, ensure that the following conditions are met:
- The SAR files must reside under the same directory on each cluster member. The SAR files reside in the following directory on the reference node: WC_INSTALL/starterstores
- Recreate that directory on each node that has a cluster member running the WebSphere Commerce application. The WebSphere Commerce user must have execute (*X) permission to the WC_INSTALL/starterstores directory on each node that has a cluster member running the WebSphere Commerce application.
- Re-create that directory on each node that has a cluster member running the WebSphere Commerce application. The QEJBSVR user must have execute (*X) permission to the WC_INSTALL/starterstores directory on each node that has a cluster member running the WebSphere Commerce application.
- Copy the WC_INSTALL/starterstores directory to each cluster member.
- The WebSphere Commerce user must have permission to read the SAR files that reside on each cluster member.
- After publishing the store, synchronize all cluster members.
To synchronize the cluster members, see the WebSphere Application Server Information Center:
If you are using a remote Web server, then update the Web server with a new Stores.war file every time that you publish a new store. The Stores.war is located...WC_EAR/Stores.war
Verify the path to this file is the same on the Web server node and the WebSphere Commerce node. You must also restart the Web Server each time you update the Stores.war file.
If you are using Microsoft IIS, stop and restart all Microsoft IIS-related services and applications. See Microsoft IIS documentation for instructions on how to stop and start these services and servers.
Remove any JSP and JAR files from the Stores.war directory on the Web server. On the Web server, only static-content files are in this directory.