The ATG sitemap generator components create a sitemap index file named siteindex.xml and two sitemap files that it includes references to:
productSitemap.xmlis the sitemap for product detail pages.staticSitemap.xmlis the sitemap for static pages, such as the About Us page.
To generate productSitemap.xml, Commerce Reference Store includes the /atg/sitemap/ProductSitemapGenerator component, which is of class atg.commerce.sitemap.CatalogSitemapGenerator. (CatalogSitemapGenerator is a subclass of atg.sitemap.DynamicSitemapGenerator that adds logic for determining the catalog to use for a site.) ProductSitemapGenerator generates the entries in the SitemapRepository that are used to create the productSitemap.xml file.
In addition to the CatalogSitemapGenerator components, Commerce Reference Store includes the following sitemap-generation components, which are also found in the /atg/sitemap/ Nucleus folder:
StaticSitemapGenerator-- This component is of classatg.sitemap.StaticSitemapGenerator. It generates the entries in theSitemapRepositorythat are used to create thestaticSitemap.xmlfile.SitemapIndexGenerator-- This component is of classatg.sitemap.SitemapIndexGenerator. It generates the entries in theSitemapRepositorythat are used to create thesiteindex.xmlfile.SitemapGeneratorService-- This component is of classatg.sitemap.SitemapGeneratorService. It manages the process of scheduling and invoking the sitemap generator components.SitemapWriterService-- This component is of classatg.sitemap.SitemapWriterService. It writes out the entries from theSitemapRepositoryto create the sitemap and sitemap index XML files.
Note that these components are not configured to create sitemaps for category pages or add entries for category page sitemaps to the siteindex.xml file. See the Configuring the Endeca Sitemap Generator section for information about creating sitemaps for category pages and adding them to sitemap index file.
Enabling Sitemap Generation
The components described above come preconfigured with most of the settings they need to generate and write out sitemaps for Commerce Reference Store. To enable sitemap generation, you need to set the warDir property of the SitemapGeneratorService component to the operating-system pathname of the deployed WAR file that the sitemap is generated for. For example:
warDir=\
C:\jboss-eap-6.1\standalone\deployments\ATG.ear\store.war
The sitemap files are written to the top-level directory of the web application you specify. Once you set warDir, you can manually invoke sitemap generation in the Dynamo Server Admin. If you want sitemap generation to run automatically on a regular schedule, you must also set the schedule property of the SitemapGeneratorService and SitemapWriterService components. See the Core Dynamo Services chapter of the Platform Programming Guide for information about setting the schedule property of a schedulable service.

