Follow these steps to set up switch deployment on the ATG Content Administration server.
Set up the appropriate Nucleus components for a
SwitchingDataSource.SwitchingDataSourcesmust be configured on the ATG Content Administration server for each destination repository and must point to the target databases. See the diagram in Destination Repositories, which shows a switch deployment configuration.In the Nucleus component that configures
atg.service.jdbc.SwitchingDataSource, configure thedataSourcesproperty so it uses the same data source names configured on the agents in the appropriate target.Set the
SwitchingDataSource.initialDataSourceNameproperty to the data source that is not the one specified in theinitialDataSourceNameon the target servers. This behavior ensures that you are deploying to the inactive database on the target server.
For example, the properties file /atg/dynamo/service/jdbc/SwitchingDataSource.properties for the ATG Content Administration server might look like this:
$class=atg.service.jdbc.SwitchingDataSource dataSources=\ FirstDataSource=/atg/dynamo/service/jdbc/FirstDataSource,\ SecondDataSource=/atg/dynamo/service/jdbc/SecondDataSource initialDataSourceName=SecondDataSource
Configuring a multi-server cluster
In order to enable Switch Deployment from a multi-server cluster, each server must be configured with contact data about the other servers in the cluster. For more information, see Configure a Cluster for Switch Deployment.

