Set the following properties of the SwitchingDataSource
component:
Name | Description |
---|---|
| The short name for the |
| Set to a
|
| Set with a reference to This refers to the switching data source repository, which keeps track of which database the switching data source points to at any time. |
This sample shows the default format of the switching datasource used by the product catalog in Oracle ATG Web 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
Note: The Configuration and Installation Manager (CIM) utility will make these configurations for you. See Configuration and Installation Manager (CIM).