tomcat共享session
tomcat6可以采用3种方式做session共享,即传说中的session复制。
1、共享文件
2、数据库
3、SimpleTcpCluster
这里只介绍一下,第3种方式,只需在server.xml里稍作改动即可。
在
notifyListenersOnReplication="true"/>
port="45564"
frequency="500"
dropTime="3000"/>
port="4000"
autoBind="100"
selectorTimeout="5000"
maxThreads="6"/>
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
相关主题