Deploying Unica Interact on Tomcat Application Server

You can deploy the Unica Interact WAR on the Tomcat Application Server (TAS).

Procedure to include during Tomcat Application Server configuration

When you configure Unica Interact on Tomcat Application Server you must perform the following steps:

You must add Test, Production and Interact Runtime Data Source in InteractDT.xml of the Unica Campaign Tomcat instance. For example:
<Resource name="<testDataSource>" factory="com.unica.manager.tomcat.utils.TomcatDSFactory" 
auth="Application" type="javax.sql.DataSource"
maxActive="30" maxIdle="10" maxWait="10000"
username="<db user for test schema>" password="<db password>" driverClassName=
"<db specific class name>" url="<db specific jdbc url>"/>

<Resource name="<prodDataSource>" factory="com.unica.manager.tomcat.utils.TomcatDSFactory"
 auth="Application" type="javax.sql.DataSource"
maxActive="30" maxIdle="10" maxWait="10000"
username="<db user for prod schema>" password="<db password>" driverClassName=
"<db specific class name>" url="<db specific jdbc url>"/>

<Resource name="<InteractRunTimeDataSource>" factory="com.unica.manager.tomcat.utils.TomcatDSFactory" 
auth="Application" type="javax.sql.DataSource"
maxActive="30" maxIdle="10" maxWait="10000"
username="<db user for runtime schema>" password="<db password>" 
driverClassName="<db specific class name>" url="<db specific jdbc url>"/>

<Resource name="<InteractLearningDS>" factory="com.unica.manager.tomcat.utils.TomcatDSFactory" 
auth="Application" type="javax.sql.DataSource"
maxActive="30" maxIdle="10" maxWait="10000"
username="<db user for runtime schema>" password="<db password>" 
driverClassName="<db specific class name>" url="<db specific jdbc url>"/>

Note  - {{You can encrypt DB password using  }}encryptTomcatDBPasswords utility located in <Platform_Home>/tools/bin

Note: Add prefix "java:/comp/env/" when defining datasource/JNDI.

For example: Runtime datasource must be given as "java:/comp/env/InteractRTDS" and similarly for other datasources: InteractLearningDS, prodUserDataSource, testRunDataSource, contactAndResponseHistoryDataSource.

After upgrading Interact on Apache Tomcat, you must encrypt the password again from the location <Installation_Location>/platform/tools/bin and manually make the changes in XMLs.

You can use the encryptTomcatDBPasswords utility and encrypt the database password which is used by the Tomcat Application server internally. It is used to encrypt database passwords used in Campaign.xml, unica.xml, InteractDT.xml, and InteractRT.xml. The utility prints the encrypted password in the command line.

The command to run the utility is: encryptTomcatDBPasswords -d databasePassword.