To configure ATG to use data sources for WebSphere or WebLogic, override the default configuration of each ATG data source, replacing it with a pointer to a WebSphere or WebLogic data source.

For example, several ATG repositories use as their default data source the component /atg/dynamo/service/jdbc/JTDataSource, which is of class atg.service.jdbc.MonitoredDataSource. Rather than reconfiguring the repositories individually, replace the JTDataSource with a component of class atg.nucleus.JNDIReference, so that the “data source” that the repositories now point to is just a JNDI reference to a WebSphere or WebLogic data source. To do this, you create a JTDataSource.properties file that contains these lines:

$class=atg.nucleus.JNDIReference
JNDIName=java:comp/env/jdbc/ATGDatasource

where ATGDatasource is the JNDI name of the WebSphere or WebLogic data source. Put this file in <ATG9dir>/home/localconfig/atg/dynamo/service/jdbc/.

 
loading table of contents...