Commit Graph

173 Commits (696c2ec8d97c5cc7a775d1bd2c90001827cb38dd)

Author SHA1 Message Date
Alex 98edad84b1 [tomcat] Apply `keyPrefix` to both session and top keys
I was testing out different codecs in different environments connected to the same redis instance.  I provided a different `keyPrefix` in `context.xml` to prevent one environment's codec from messing with another environment's session management.  However, since the `keyPrefix` is only applied to the session contents themselves and not the topic subscription, codec errors were still present and causing a lot of log spew.

I expected `keyPrefix` to apply not only to the session contents but also to the topic updates, so I'm publishing this PR to see if you guys agree.

Here are example of updates for two different codecs with two different `keyPrefix` BEFORE this commit is applied.
```+1544721052.037348 [0 10.0.1.184:40588] "publish" "redisson:tomcat_session_updates:" "{\"@class\":\"org.redisson.tomcat.AttributesPutAllMessage\",\"attrs\":{\"@class\":\"java.util.HashMap\",\"session:thisAccessedTime\":[\"java.lang.Long\",1544721052035],\"session:isNew\":true,\"session:lastAccessedTime\":[\"java.lang.Long\",1544721052035],\"session:maxInactiveInterval\":3600,\"session:isValid\":true,\"session:creationTime\":[\"java.lang.Long\",1544721052035]},\"nodeId\":\"a2a9d075-4b40-4ea4-a8f4-174cb8caaa08\",\"sessionId\":\"1D83362C925593187FB081FE63BD14D0\"}"```

```+1544721052.300687 [0 10.0.0.213:55652] "publish" "redisson:tomcat_session_updates:" "\xac\xed\x00\x05sr\x00*org.redisson.tomcat.AttributeUpdateMessage\x04\x81\x81\xaa!\xb5\xabE\x02\x00\x02L\x00\x04namet\x00\x12Ljava/lang/String;L\x00\x05valuet\x00\x12Ljava/lang/Object;xr\x00$org.redisson.tomcat.AttributeMessage_\xc4\xf5\xe6~\xa9v\xa3\x02\x00\x02L\x00\x06nodeIdq\x00~\x00\x01L\x00\tsessionIdq\x00~\x00\x01xpt\x00$178c19c3-a5d5-4152-bf99-72c5102c0addt\x00 1CAE476D1DCC75948E8DBD7BCA48FF16t\x00\rsession:isNewsr\x00\x11java.lang.Boolean\xcd r\x80\xd5\x9c\xfa\xee\x02\x00\x01Z\x00\x05valuexp\x00"```
6 years ago
Nikita Koksharov dfcf183fb9
Update README.md 6 years ago
Nikita Koksharov e81139d047 [maven-release-plugin] prepare for next development iteration 6 years ago
Nikita Koksharov ae049c26ea [maven-release-plugin] prepare release redisson-2.14.1 6 years ago
Nikita Koksharov 6c1eee987d
Update README.md 6 years ago
Nikita Koksharov 2a08edf2ff [maven-release-plugin] prepare for next development iteration 6 years ago
Nikita Koksharov 20dd4ad428 [maven-release-plugin] prepare release redisson-2.14.0 6 years ago
Nikita 9c69d25caf plugins updated 6 years ago
Nikita 731234707e Feature - multi type listeners support for RTopic object. #731 6 years ago
Nikita Koksharov 908391798c
Update README.md 6 years ago
Nikita 48197a918c [maven-release-plugin] prepare for next development iteration 6 years ago
Nikita d09e06cc7e [maven-release-plugin] prepare release redisson-2.13.2 6 years ago
Nikita Koksharov 4ecae48321
Merge pull request #1639 from akrepon/master
Fix tomcat session replication issue #1414
6 years ago
Nikita Koksharov ec0e79d3af
Update README.md 6 years ago
Yasin Koyuncu c0e06ec39f Restore headers 6 years ago
Yasin Koyuncu 30f361b775 Fix tomcat session replication issue #1414 6 years ago
Nikita 2b08f0bb92 [maven-release-plugin] prepare for next development iteration 6 years ago
Nikita 6447a3af9f [maven-release-plugin] prepare release redisson-2.13.1 6 years ago
Nikita f65b54404a [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 3a28b43bcf [maven-release-plugin] prepare release redisson-2.13.0 7 years ago
Nikita 98c601fc1d version fixed 7 years ago
Nikita 787246b0b5 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 951d22640b [maven-release-plugin] prepare release redisson-2.13 7 years ago
Nikita Koksharov 8712c7dd07
Update README.md 7 years ago
Nikita Koksharov e3db943b10
Update README.md 7 years ago
Nikita Koksharov 2e8ead7159
Update README.md 7 years ago
Nikita Koksharov b97d4088b0
Update README.md 7 years ago
Nikita Koksharov 2536f5f630
Update README.md 7 years ago
Nikita c6269509c7 refactoring 7 years ago
Nikita 43765f94de Spring Data module added. #1373 7 years ago
Nikita d5e0e6e97e MessageListener method signature fixed 7 years ago
Nikita Koksharov fa36e30438
Update README.md 7 years ago
Nikita 4b828a6cb6 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita c1968b1cba [maven-release-plugin] prepare release redisson-2.12.5 7 years ago
Nikita Koksharov 7d7da2dc07
Update README.md 7 years ago
Nikita 879109b9da [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita a44477f50a [maven-release-plugin] prepare release redisson-2.12.4 7 years ago
Nikita 2c05c92006 Fixed - ClassNotFoundException arise in Tomcat session manager #1454 7 years ago
Nikita bb491f60f1 Fixed - ClassNotFoundException arise in Tomcat session manager #1454 7 years ago
Nikita 1a61d03655 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita b506c2e41d [maven-release-plugin] prepare release redisson-2.12.3 7 years ago
Nikita d295f4ab44 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 5e89e554ab [maven-release-plugin] prepare release redisson-2.12.2 7 years ago
Nikita ba14300611 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita a8624c55d0 [maven-release-plugin] prepare release redisson-2.12.1 7 years ago
Nikita Koksharov 619424d848
Update README.md 7 years ago
Nikita 59ee2a2738 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita f817b8aed9 [maven-release-plugin] prepare release redisson-2.12.0 7 years ago
Nikita fe79bbf5f2 Serializable interface added AttributeMessage 7 years ago
Nikita a4b4c38a70 replication for Tomcat sessions located in memory. #1414 7 years ago