I created my own Cache and CacheManager:
public class VonageDistributedSessionCache implements Cache {
public VonageDistributedSessionCache(String name) {
System.err.println("VonageDistributedSessionCache
constructor.");
}
...
}
public class VonageDistributedSessionCacheManager implements
CacheManager {
public Cache getCache(String name) throws CacheException {
return new VonageDistributedSessionCache(name);
}
}
Then in [main] section of my ShiroFilter in web.xml, I have:
[main]
realmA = com.vonage.auth.client.VonageAuthenticationRealm
securityManager.sessionMode = native
And when I add this:
# pull in vonage centralized authentication:
cacheManager =
com.vonage.auth.client.VonageDistributedSessionCacheManager
sessionDAO = org.apache.shiro.session.mgt.eis.MemorySessionDAO
sessionDAO.cacheManager = $cacheManager
securityManager.sessionDAO = $sessionDAO
securityManager.cacheManager = $cacheManager
...I get this error:
javax.servlet.ServletException: Unable to load from text configuration.
So...does this injection go here in the [main] section of ShiroFilter,
or somewhere else?
Thanks,
Andy