WebSphere Commerce Enterprise

Publishing the new asset store

Before your new asset store can be published using the Site Administration Console, it must be added to the SARRegistry.xml file.

Procedure

  1. Add your customized asset store to the SARRegistry.xml file:
    1. Open the following file in a text editor:

      WC_eardir/workspace/WC/xml/tools/devtools/SARRegistry.xml

    2. Search for the following string: <!-- Reseller Hosting -->
      The following entries are for the Extended Sites sar files:
      
      <SampleSAR fileName="ExtendedSites.sar"
      relativePath="ExtendedSites"> <view name="ResellerHosting"/>
      <view name="default"/>
      </SampleSAR>
      102 Extended Sites in WebSphere Commerce V5.6.1
      <SampleSAR fileName="ExtendedSitesOrganizationStructure.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      <SampleSAR fileName="ExtendedSitesCatalogAssetStore.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      <SampleSAR fileName="B2BDirectStorefrontAssetStore.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      <SampleSAR fileName="ConsumerDirectStorefrontAssetStore.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      <SampleSAR fileName="StoreDirectory.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      <SampleSAR fileName="ExtendedSitesHub.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      
    3. Copy one complete SampleSAR entry and add your copy to the bottom of this section in the file.
    4. Change the file name to match the file name of your new sar file. For example, CustomB2CStorefrontAssetStore.sar:
      
      <SampleSAR fileName="CustomB2CStorefrontAssetStore.sar"
      relativePath="ExtendedSites">
      <view name="ResellerHosting"/>
      </SampleSAR>
      
    5. Save the file and close the text editor.
  2. Publish your customized asset store:
    1. Open the WebSphere Commerce Administration Console, selecting the Site option.
    2. From the Store Archives menu, select Publish. This opens the Store Archives page.
    3. From the View list box, select Extended sites. You should see your new asset store archive file in the list.
    4. Select it and click Next. This opens the Parameters page.
    5. Click Next. This opens the Summary page.
    6. Click Finish to begin the background publishing process.
    7. You can click Refresh to update the Publish Status field.
  3. When the Publish Status is Successful, you can log off of the Site Administration Console.
    Note: Do not attempt to launch the store as no working store has been created yet.