问题1:为了实现热部署,用nginx在服务器做了两个tomcat的集群,但是现在两个tomcat的session不共享,如果一开始访问tomcat1,获取授权,再访问tomcat2 shiro就识别为未授权。
有人遇到过shiro在集群中的问题吗?
不想用redis或memcache缓存session,只用ehcache可以解决吗?
问题2: 搜了一下ehcache用jgroup或者rmi好想可以解决,网上说的jgroup的解决方案中用的ehcache版本好想跟我的不一样, 在他的代码里用到了net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory
但是我再我的ehcache没有找到(我用的maven管理依赖,版本是2.6.6)
依赖如下:
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.6.6</version>
</dependency>
但是ehcache-core从2015年开始就没有更新了。是换了别的名字吗?