Tomcat Clusterノード複数起動in単一筐体

前回挑戦したときはネットに接続していない環境だったので調べられずと思って失敗したときに諦めたのだけど,なんだやはり配布済みドキュメントに書いてるよ.これでできそう.「結論:ぐぐるな」の人の言うとおりですね.

http://localhost:8080/tomcat-docs/cluster-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

To run session replication in your Tomcat 5 container, the following steps should be completed:

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.
Make sure your web.xml has the element

なんてシンプルなんでしょう.スバらしー.ミドルウェアはどんどん進化していって,開発者はますます基盤系から遠ざかる,と.