Note: When you use CIM to install your switching environment, you must include the Commerce Service Center add-on for the site_configuration table described below. The configuration is not installed by default when creating a switching environment with your Oracle Commerce Platform installation.
When you configure a switching data source environment, CIM creates a mirror of the site_configuration
table that is used for SQL token generation, and adds an EndPointsBridger
service. This allows both schemas to see each others’ site_configuration
table, and allows data synchronization and periodic updates to ensure that the data sources are synchronized.
When you run CIM, the Switching Environment add-on installs theDCS-CSR_indexing_mirroring_ddl.sql
. This installs the mirroring site_configuration
table that contains the site ID and the realm ID of the site. The /atg/textsearch/respository/
file contains the
searchRepository.xmlsiteConfiguration
item-descriptor that defines the mirrored site_configuration
table.
The EndPointsBridger
component enables communication between the destination and source end points for synchronization and updates, as well as identifies scheduler and lock management details:
# source end point component source=/atg/textsearch/indexing/mirror/endpoint/siteconfig/ SiteConfigSourceEndPoint # destination end point component destination=/atg/textsearch/indexing/mirror/endpoint/siteconfig/ SiteConfigDestinationEndPoint transactionManager=/atg/dynamo/transaction/TransactionManager # if true any updates on the source end points will be propagated to the # destination end point. incrementalUpdatesEnabled=true # size of the page that the items are returned in. pageSize=1000 # Incremental scheduler properties scheduler=/atg/dynamo/service/Scheduler schedule=every 30 seconds jobName=SiteConfigurationRepositoryIncrementalUpdate jobDescription=Site Configuration Repository Incremental Update # SingletonSchedulableService lock manager details. clientLockManager=/atg/dynamo/service/ClientLockManager lockName=EndPointBridger_LOCK lockTimeOut=2000
The BridgerIndexingLock
component identifies indexing lock information used to ensure that the lock management occurs correctly, ensuring that the SingletonSchedulableService
allows only a single service to perform a scheduled task. For additional information on profile and order searches and associated components, refer to the Configuring Order and Profile Search section.