Commit Graph

116 Commits (cd4326d6d2eeed78336df9bd40fcca01c0d6bcb6)

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 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 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 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
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 c6269509c7 refactoring 7 years ago
Nikita d5e0e6e97e MessageListener method signature fixed 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 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 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
Nikita fad11d51e2 [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 7e0227eb46 [maven-release-plugin] prepare release redisson-2.11.5 7 years ago
Nikita d9e57be29e [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 8a0d083fd9 [maven-release-plugin] prepare release redisson-2.11.4 7 years ago
Nikita 8b52b76e2b [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita d4f75e511e [maven-release-plugin] prepare release redisson-2.11.3 7 years ago
Faisal Ahmed b0381de67a fixed missing colon problem in user defined key prefix. 7 years ago
Nikita Koksharov 6cae205743
Merge pull request #1321 from devel83/master
Configurable Tomcat Session Key Prefix for Redis
7 years ago
Faisal Ahmed 51eaa2a474 changed "keySpace" property name to "keyPrefix" 7 years ago
Nikita 853f5260fb [maven-release-plugin] prepare for next development iteration 7 years ago
Nikita 2a736e8f6d [maven-release-plugin] prepare release redisson-2.11.2 7 years ago
Faisal Ahmed 577ea99818 Added mechanism to configure tomcat session key prefix. 7 years ago
Nikita dfa3b4c2dd Copyright updated 7 years ago
Nikita b2d40e43a5 Fixed - tomcat session renewal. #1311 7 years ago