Administer > Deploy > Publish a store archive > Publishing a store archive using the Publish wizard
Add a new store archive to the Publish wizard
You can add a store archive to the Publish wizard in either the default view, or in a particular view. You must have Site Administrator access to complete either of these tasks.
Procedure
- To add the new store archive to the default view:
- Ensure that you have Site Administrator access.
- Open the WebSphere Commerce configuration file and locate the SarPath attribute of the DevTools element. If the directory specified by this attribute does not already exist, create it.
- Copy the store archive file that to add to the directory identified in step 2.
- Verify that the new store archive is displayed in the Default view of the Publish wizard.
- To add the store archive to a particular view:
- Open the SARRegistry.xml file. It is located in the following directory:
- WC_INSTALL/wc.ear/xml/tools/devtools
- WC_PROFILE/xml/tools/devtools
- Add a SampleSAR element for the archive you are adding; for example:
<SampleSAR fileName="ConsumerDirect.sar" relativePath="ConsumerDirect"> <view name="ConsumerDirect" /> <view name="default" /> <html locale="de_DE" featureFile="" sampleSite="de_DE/B2C/FashionFlow/index.html"/> <html locale="en_US" featureFile="" sampleSite="en_US/B2C/FashionFlow/index.html"/> <html locale="es_ES" featureFile="" sampleSite="es_ES/B2C/FashionFlow/index.html"/> <html locale="fr_FR" featureFile="" sampleSite="fr_FR/B2C/FashionFlow/index.html"/> <html locale="it_IT" featureFile="" sampleSite="it_IT/B2C/FashionFlow/index.html"/> <html locale="ja_JP" featureFile="" sampleSite="ja_JP/B2C/FashionFlow/index.html"/> <html locale="ko_KR" featureFile="" sampleSite="ko_KR/B2C/FashionFlow/index.html"/> <html locale="pt_BR" featureFile="" sampleSite="pt_BR/B2C/FashionFlow/index.html"/> <html locale="zh_CN" featureFile="" sampleSite="zh_CN/B2C/FashionFlow/index.html"/> <html locale="zh_TW" featureFile="" sampleSite="zh_TW/B2C/FashionFlow/index.html"/> </SampleSAR>
Where:
- fileName
- The name of the store archive.
- relativePath
- The directory path relative to the sampleSarPath attribute of the DevTools element in the WebSphere Commerce configuration file.
- name
- The name of the view that the store archive will display in from the Publish user interface. Note that a store archive may display in multiple views. For example, ConsumerDirect.sar will display in both the Consumer Direct view and the default view.
- locale
- The locale for the HTML preview files.
- featureFile
- Deprecated and no longer used.
- sampleSite
- The location of the locale-specific store preview page relative to the following path:
- WC_EAR/SiteAdministration.war/ tools/devtools/preview
- Verify that the new store archive is displayed in the appropriate view of 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.