Set the following properties of the SwitchingDataSource component:

Name

Description

initialDataSourceName

The short name for the DataSource that should be used for the currentDataSource on the very first run. On subsequent runs, the initial currentDataSource is obtained from the state recorded in the SDSRepository.

dataSources

Set to a ServiceMap of DataSources. This property maps short names of DataSources to their Nucleus addresses. The following example shows how you might set the dataSources property:

dataSources=FirstDataSource=\
/atg/dynamo/service/jdbc/FirstDataSource,\
  SecondDataSource=\
/atg/dynamo/service/jdbc/SecondDataSource

switchingDataSourceEventListeners

Add each Repository component that uses the DataSource. You can add Event Listeners using the Events tab in the ATG Control Center Components editor.

Repository

Set with a reference to /atg/dynamo/service/jdbc/SDSRepository.

 
loading table of contents...