Thank you Jared.

My final and working solution is even simpler:

public class EhCacheManagerFactory implements Factory<CacheManager> {

        public CacheManager getInstance() {
                return CacheManager.create();
        }
}

It creates a new instance of EhCacheManager when it doesn't exist and
returns the new one when it was created before.

--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Shiro-and-multiple-wars-within-the-same-Servlet-Container-tp5560737p7577571.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to