开发者

Custom session state management

开发者 https://www.devze.com 2023-02-07 09:11 出处:网络
Can someone point me to example implementation for custom session state management ? I am looking for following approach \"keep all the session state in database and keep only the keys in HttpSession

Can someone point me to example implementation for custom session state management ?

I am looking for following approach "keep all the session state in database and keep only the keys in HttpSession开发者_JAVA技巧 object. "

Can it be done using Spring ?

TIA

-Vin


Using a plain old java proxy for this (or cglib proxies) should be possible, you still need to handle saving/loading to/from your db. There's also the issue to see if a proxied object has been modified this would have to been handled additionally. Spring does not anything to this AFAIK.

Not sure what you're trying to achieve really, but perhaps also memcached-session-manager is interesting for you (shameless plug :-)).

0

精彩评论

暂无评论...
验证码 换一张
取 消