If you will deploy Apache Tomcat as a failover
data service install the Apache Tomcat binaries on the shared storage on one node. If Apache Tomcat will be deployed as a scalable
or a multiple master data service, install the Apache Tomcat binaries on the local
storage on every node that will host the Apache
Tomcat data service.

If you deploy Apache Tomcat as a scalable data service for a scalable or a multiple
masters configuration, repeat the following step at every node that will host Apache
Tomcat.

Create the environment script.

Create an Korn shell or a Cshell
script (dependent on the login-shell of your Apache Tomcat user name) to set the environment
variables for Apache Tomcat. You must set the environment variables in a shell script
and not in the users profile.

With this mechanism you can install and
run multiple Apache Tomcat versions and instances under one user name.

Caution –

These
shell scripts must be available on every node that can host the Apache Tomcat data
service. For a failover configuration, store them on the shared storage. For a scalable
or a multiple masters configuration, store them on the local file system of every
node or on the shared storage. These scripts must not be different on the various
nodes.