Commit Graph

36 Commits (820fe3b68eb2cc963f0ec5201046818a2b78a8fa)

Author SHA1 Message Date
Nikita Koksharov 5095cd7fa7 refactoring 6 years ago
Nikita Koksharov e4ba9eaf09 Feature - JndiRedissonFactory and JndiRedissonSessionManager added. #1819 6 years ago
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 731234707e Feature - multi type listeners support for RTopic object. #731 6 years ago
Yasin Koyuncu c0e06ec39f Restore headers 6 years ago
Yasin Koyuncu 30f361b775 Fix tomcat session replication issue #1414 6 years ago
Nikita c6269509c7 refactoring 7 years ago
Nikita d5e0e6e97e MessageListener method signature fixed 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 fe79bbf5f2 Serializable interface added AttributeMessage 7 years ago
Nikita a4b4c38a70 replication for Tomcat sessions located in memory. #1414 7 years ago
Faisal Ahmed b0381de67a fixed missing colon problem in user defined key prefix. 7 years ago
Faisal Ahmed 51eaa2a474 changed "keySpace" property name to "keyPrefix" 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
Nikita a55562c672 UpdateMode.AFTER_REQUEST mode optimization. #1302 7 years ago
Nikita 233dafc444 UpdateMode option renamed 7 years ago
Nikita e8bd2aa54c updateMode setting added. #1222 7 years ago
Nikita 9212ac5d16 test fixed 7 years ago
Nikita 65ac6f33db Fixed NPE in RedissonSession.save #1149 7 years ago
Michael Cameron e400692e55 Separate client construction into separate method to support child classes that configure differently 7 years ago
Nikita e42c9c1c26 Fixed - RedissonSession.setValid(false) can recreate Tomcat session. Session validity checking improved. #974 7 years ago
Nikita b573eadd80 Added readMode property for RedissonSessionManager #974 8 years ago
Nikita 056adfa7d5 RedissonSession attributes should be read in first order to avoid invalidated session exception. #974 8 years ago
Nikita 90f1d528ca Fixed - ContextClassLoader should be used by Redisson Codec for Tomcat session's object serialization. #974 8 years ago
Nikita 3c0449eda7 Fixed - Tomcat RedissonSessionManager doesn't remove session on invalidation/expiration. #972 8 years ago
Nikita 93b7a60ee9 refactoring 8 years ago
Nikita 2906d574f5 Fixed - redisson-tomcat-8 not compatible with Tomcat 8.5.2 #797 8 years ago
Nikita 204a594725 TomcatSessionManager can't be used in Tomcat if it already has been deployed in Application. #784 8 years ago
Nikita 40c39c90e6 NoSuchFieldError exception fixed. #746 8 years ago
Nikita 3dbf0488fd redis address format fixed 8 years ago
Nikita 4fe4c84559 Tomcat stop process fixed 8 years ago
Nikita 0b85ea91ee RedissonSession optimization. #590 8 years ago
Nikita c378299009 Tomcat session manager implemented. #590 8 years ago