开发者

Custom session state management

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜