You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
redisson/redisson-tomcat
Nikita 7abc90676c [maven-release-plugin] prepare for next development iteration 7 years ago
..
redisson-tomcat-6 [maven-release-plugin] prepare for next development iteration 7 years ago
redisson-tomcat-7 [maven-release-plugin] prepare for next development iteration 7 years ago
redisson-tomcat-8 [maven-release-plugin] prepare for next development iteration 7 years ago
redisson-tomcat-9 [maven-release-plugin] prepare for next development iteration 7 years ago
README.md Update README.md 7 years ago
pom.xml [maven-release-plugin] prepare for next development iteration 7 years ago

README.md

Redis based Tomcat Session Manager

Stores session of Apache Tomcat in Redis and allows to distribute requests across a cluster of Tomcat servers. Implements non-sticky session management backed by Redis.

Supports Apache Tomcat 6.x, 7.x, 8.x, 9.x

Advantages

Current implementation differs from any other Redis based Tomcat Session Manager in terms of efficient storage and optimized writes. Each session attribute is written into Redis during each HttpSession.setAttribute invocation. While other solutions serialize whole session each time.

Usage

1 Add RedissonSessionManager into context.xml

<Manager className="org.redisson.tomcat.RedissonSessionManager"
          configPath="${catalina.base}/redisson.conf" />

readMode - read attributes mode. Two modes are available: MEMORY and REDIS.
            MEMORY - read attributes stored in local Tomcat Session.
            REDIS - read directly from Redis.

configPath - path to Redisson JSON or YAML config. See configuration wiki page for more details.

2 Copy two jars into TOMCAT_BASE/lib directory:

  1. For JDK 1.8+
    redisson-all-3.5.6.jar

    for Tomcat 6.x
    redisson-tomcat-6-3.5.6.jar
    for Tomcat 7.x
    redisson-tomcat-7-3.5.6.jar
    for Tomcat 8.x
    redisson-tomcat-8-3.5.6.jar

  2. For JDK 1.6+
    redisson-all-2.10.6.jar

    for Tomcat 6.x
    redisson-tomcat-6-2.10.6.jar
    for Tomcat 7.x
    redisson-tomcat-7-2.10.6.jar