tomcat-redis-sessioon-Manager implements Tomcat's session-manager redis persistence functionality (tomcat-redis-sessioon-manager是一个使用redis作为tomcat持久化的session-manager实现)
####see jcoleman' project : https://github.com/jcoleman/tomcat-redis-session-manager ###The project is based on "jcoleman" second development version(本项目是基于jcoleman的二次开发版本) ####1、modify some Code that is not compatible with tomcat8 and later versions (修改了不兼容 tomcat8的代码) ####2、Removal of "Juni.jar" dependency( 不需要再依赖juni.jar包) ####3、Remove invalid code(去除无效代码) ####4、Support tomcat8 and later versions(支持 tomcat8及以后的版本) ####5、dependency 'jedis-2.9.0.jar' and 'commons-pool2-2.2.jar' ##Configuration instructions(配置及使用) ###1、copy 'tomcat-redis-session-manager-by-eguid.jar','jedis-2.9.0.jar' and 'commons-pool2-2.2.jar' to 'tomcat/lib'directory ###2、modify Tomcat 'context.xml' (or the context block of the server.xml if applicable.)
<Valve className="cn.eguid.redisSessionManager.RedisSessionHandlerValve"/> <Manager className="cn.eguid.redisSessionManager.RedisSessionManager" host="192.168.30.21" port="6379" database="14" maxInactiveInterval="1800"/>