2

Can session replication be implemented on Tomcat 8 with redis? I am not able to find redis session manager jar for tomcat 8!

Hari Krishnan
  • 31
  • 1
  • 4

1 Answers1

6

There is a ready solution offered by Redisson framework - Redis based In-Memory Data Grid.

Two steps how to use it:

  1. 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.

  1. Copy both jars into TOMCAT_BASE/lib directory: redisson-all-3.x.x.jar and redisson-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