shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Grieder <>
Subject Re: Shiro With Mongo DB
Date Fri, 01 Nov 2013 15:25:20 GMT
We have not tried with MongoDB, but I guess any store where you can keep serialized data should

For the Session Cache, on the DefaultWebSessionManager (or your implementation) call setCache() with
your own implementation of a CacheManager.

Your implementation of CacheManager must override the method public <K, V> Cache<K,
V> getCache(String cacheName) throws CacheException to return your Cache implementation.

Your Cache implementation must handle the CRUD calls to either MongoDB or to a Memory Cache
like EhCache, backed by MongoDB. Now you have to make sure that yourHttpSessions are serializable
and I am not sure there may be any benefit to serialize them to JSON.

If you want to cache Authorization and Authentication infos, silly do the same on your implementation
of the AuthorizingRealm
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message