Set the following properties of the SwitchingDataSource
component:
Name | Description |
---|---|
| The short name for the |
| Set to a
|
| Set with a reference to |
This sample shows the default format of the switching datasource used by the product catalog in ATG Commerce:
$class=atg.service.jdbc.SwitchingDataSource # # A map from data source names to data sources # dataSources=\ DataSourceA=/atg/commerce/jdbc/ProductCatalogDataSourceA,\ DataSourceB=/atg/commerce/jdbc/ProductCatalogDataSourceB # # The name of the data source that should be used on startup # initialDataSourceName=DataSourceA repository=/atg/dynamo/service/jdbc/SDSRepository