Follow the steps below to configure tomcat for Dispatcher,
-
Configure the database connector in $CONNECT/deploy/swarm/config/tomcat/server.xml
-
Go to the bottom of the file and set one of the two context sections.
-
For ORACLE:
<!--Context path="/connect" docBase="connect" debug="0" reloadable="false" crossContext="true"> <Resource name="jdbc/ecConnect" auth="Container" type="javax.sql.DataSource" maxTotal="100" maxIdle="10" maxWaitMillis="10000" username="ecuser" password="ecuser" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:[driverType]:@[serverName][:portNumber]][[:sid][/service]]"/>
-
For MSSQL
<Context path="/connect" docBase="connect" debug="0" reloadable="false" crossContext="true"><Resource name="jdbc/ecConnect" auth="Container" type="javax.sql.DataSource"
maxTotal="100" maxIdle="10" maxWaitMillis="10000" username="ecuser" password="ecuser" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://[serverName][\instanceName][:portNumber];database=[dbName]"/> </Context>
-
-
Tomcat logging can be configured by editing the file below,
$CONNECT/deploy/swarm/config/tomcat/logging.properties.
The *.maxDays settings can be used to control the log retention period. Logs are rotated nightly by default.