ATG How to Make Staging Do not Switch when deployment

Staging deployment can be 50% faster if we configure it to not switch, this is useful when staging is used as preview environment for your business.

The First thing to do is configure all the Data Sources that use SwitchingDataSource to point to one of the Catalogs, these are the ones that are out of the box, you need to do the same for the custom Repositories that uses Switching Data source on your Store instance.

/atg/commerce/catalog/ProductCatalog.properties
/atg/commerce/pricing/priceLists/PriceLists.properties
/atg/multisite/SiteRepository.properties
/atg/seo/SEORepository.properties
/atg/store/stores/StoreRepository.properties  

These should point to CatalogA as example

 dataSource=/atg/dynamo/service/jdbc/SwitchingDataSourceA

Then you need to configure the Agent to not switch, this needs to be done at Component /atg/epub/DeploymentAgent/ on your Pub Instance
  • switchableDataStores^=/Constants.null
After this change is done this will be shown as follows:
If everything is well configured you will see your Staging as follows:



Comments