Taming Tomcat
Clustering: Quick HOWTO
- All your session attributes must implement
java.io.Serializable
- Uncomment the Cluster element in
server.xml
- Uncomment the Valve(ReplicationValve) element
in server.xml
- If your Tomcat instances are running on the same machine,
make sure the tcpListenPort attribute is unique
for each instance.
- Better still, don't run them on the same machine
- Make sure the web.xml for each application has
the <distributable/> element
- and each application actually is distributable!