Can session replication be implemented on Tomcat 8 with redis? I am not able to find redis session manager jar for tomcat 8!
Asked
Active
Viewed 8,109 times
1 Answers
6
There is a ready solution offered by Redisson framework - Redis based In-Memory Data Grid.
Two steps how to use it:
Add RedissonSessionManager into context.xml
<Manager className="org.redisson.tomcat.RedissonSessionManager" configPath="${catalina.base}/redisson.yaml" />
configPath
- path to Redisson JSON or YAML config. See configuration wiki page for more details.
- Copy both jars into TOMCAT_BASE/lib directory:
redisson-all-3.x.x.jar
andredisson-tomcat-9-3.x.x.jar
Boost Tomcat Session Manager performance up to 4x times with Redisson PRO version.

Nikita Koksharov
- 10,283
- 1
- 62
- 71