To configure Dynamo to use data sources for WebSphere or WebLogic, override the default configuration of each Dynamo data source, replacing it with a pointer to a WebSphere or WebLogic data source.
For example, several Dynamo 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 <ATG2007.3dir>/home/localconfig/atg/dynamo/service/jdbc/
and in the corresponding directory of each Dynamo server. For example, if you have created a server named server1
, copy the file into the directory <ATG2007.3dir>/home/servers/server1/localconfig/atg/dynamo/service/jdbc/
.
In addition, you should set the resourcePoolPath
property of /atg/dynamo/server/ServerMonitor
to null. To do this, create a ServerMonitor.properties
file in <ATG2007.3dir>/home/localconfig/atg/dynamo/server
(and in the corresponding directory of each Dynamo server) that contains this line:
resourcePoolPaths^=/Constants.null