Java 会话复制在Tomcat 5.5中不起作用
负载平衡器中有4台服务器,使用的是Tomcat 5.5。在设置Tomcat集群时已经介绍了以下几点,但是会话复制仍然没有正常进行Java 会话复制在Tomcat 5.5中不起作用,java,tomcat,load-balancing,tomcat5.5,session-replication,Java,Tomcat,Load Balancing,Tomcat5.5,Session Replication,负载平衡器中有4台服务器,使用的是Tomcat 5.5。在设置Tomcat集群时已经介绍了以下几点,但是会话复制仍然没有正常进行 会话属性已实现java.io.Serializable 取消对server.xml中的集群元素、Valve(ReplicationValve)元素的注释 Web.xml具有元素 在所有四台服务器中设置为唯一值 Loadbalancer配置为粘性会话模式 <Cluster className="org.apache.catalina.cluster.tcp.Sim
java.io.Serializable
集群
元素、Valve(ReplicationValve)
元素的注释Web.xml
具有
元素
在所有四台服务器中设置为唯一值李>
Loadbalancer
配置为粘性会话模式
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
如果要使用会话复制,请检查步骤5中的所有步骤是否必要?是否要说粘性会话部分?好的,它就在文档中。我投票结束这个问题,因为它是关于服务器配置的,更多的是关于serverfault的主题。