An Oracle Commerce Platform site typically consists of both static pages (such as contact information pages) and dynamic pages (such as product detail pages), as discussed in URL Recoding. The logic for creating sitemaps for these two types of pages differs, so the Oracle Commerce Platform sitemap generation tools create separate sitemaps for static and dynamic pages, and then include the sitemaps for both types of pages in a single sitemap index.
The process of generating sitemaps and sitemap indexes is managed by the atg.sitemap.SitemapGeneratorService
class. This service can invoke all of the following:
One or more components of class
atg.sitemap.StaticSitemapGenerator
, for generating sitemaps of static pages.One or more components of class
atg.sitemap.DynamicSitemapGenerator
, for generating sitemaps of dynamic pages.One component of class
atg.sitemap.SitemapIndexGenerator
, for creating a sitemap index containing references to the sitemaps generated by theSitemapGenerator
components.
Creating sitemaps is a two-step process. First, you run the SitemapGeneratorService
, which creates the sitemaps and the sitemap index as repository items in the SitemapRepository
. Then, to write out the actual XML files, you run the atg.sitemap.SitemapWriterService
on each page-serving Oracle Commerce Platform instance in your production environment. This repository-based approach makes it possible to distribute the sitemaps and index to all of your servers without running the generators multiple times.
There are three ways to invoke the SitemapGeneratorService
and SitemapWriterService
:
Scheduling them to run automatically at specified times or intervals.
Configuring a deployment listener so they are run automatically after a CA deployment.
Invoking them manually through the Dynamo Server Admin.
Configuring the sitemap generation and writing components is described in Configuring Sitemap Generation and Configuring Sitemap Writing. The different ways of invoking the generation process are discussed in Invoking Sitemap Generation and Writing.
Note that the Oracle Commerce Platform sitemap generation tools assume that you are using the techniques described in the URL Recoding section, and they invoke some of the same classes and components described there.