Update README.md

pull/15/head
Ranjith Manickam 2017-07-28 14:46:40 +05:30 committed by GitHub
parent 13bcf29e58
commit 5fca37e84b
1 changed files with 9 additions and 13 deletions

View File

@ -9,35 +9,31 @@ It supports, both single redis master and redis cluster based on the RedisDataCa
Going forward, we no need to enable sticky session (JSESSIONID) in Load balancer.
## Supports:
* [Apache Tomcat 7](https://github.com/ran-jit/tomcat-cluster-redis-session-manager/releases/tag/1.0)
* Apache Tomcat 7
* Apache Tomcat 8
## Downloads:
##### Pre-requisite:
## Pre-requisite:
1. jedis.jar
2. commons-pool2.jar
3. commons-logging.jar
**Tomcat Redis Cluster Enabled Session Manager is available in below location**
https://github.com/ran-jit/tomcat-cluster-redis-session-manager/wiki
more details.. https://github.com/ran-jit/TomcatClusterRedisSessionManager/wiki
#### Steps to be done,
1. Move the downloaded jars to tomcat/lib directory
* **$catalina.home/lib/**
* **tomcat/lib/**
2. Add tomcat system property "catalina.base"
* **catalina.base="TOMCAT_LOCATION"**
3. Configure downloaded Redis credentials in RedisDataCache.properties file and move the file to tomcat/conf directory
* **tomcat/conf/RedisDataCache.properties**
3. Extract downloaded package (tomcat-cluster-redis-session-manager.zip) to configure Redis credentials in redis-data-cache.properties file and move the file to tomcat/conf directory
* **tomcat/conf/redis-data-cache.properties**
4. Add the below two lines in tomcat/conf/context.xml
* **<Valve className="com.r.tomcat.session.management.RequestSessionHandlerValve" />**
* **<Manager className="com.r.tomcat.session.management.RequestSessionManager" />**
* **<Valve className="tomcat.request.session.redis.SessionHandlerValve" />**
* **<Manager className="tomcat.request.session.redis.SessionManager" />**
5. Verify the session expiration time in tomcat/conf/web.xml
* **<session-config>**
@ -45,4 +41,4 @@ Going forward, we no need to enable sticky session (JSESSIONID) in Load balancer
* **</session-config>**
### Note:
* Supports, single and multi-node redis cluster based on the RedisDataCache.properties configuration.
* This supports, both redis stand-alone and multiple node cluster based on the redis-data-cache.properties configuration.