免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2502 | 回复: 1
打印 上一主题 下一主题

[Web] 两台tomcat做web服务器 使用硬件负载均衡实现 session如何解决? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-09 17:29 |只看该作者 |倒序浏览
在tomcat中实现还是在程序中解决?非常感谢!!

论坛徽章:
0
2 [报告]
发表于 2006-10-09 20:44 |只看该作者
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
http://luodarou.blogchina.com/444781.html

To enable session replication in Tomcat, three different paths can be followed to achieve the exact same thing:

   1. Using session persistence, and saving the session to a shared file system (PersistenceManager + FileStore)
   2. Using session persistence, and saving the session to a shared database (PersistenceManager + JDBCStore)
   3. Using in-memory-replication, using the SimpleTcpCluster that ships with Tomcat 5 (server/lib/catalina-cluster.jar)

[ 本帖最后由 luodarou 于 2006-10-9 20:47 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP