You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by PPiatkowski <pi...@gmail.com> on 2012/07/06 13:59:46 UTC

Re: Shiro and multiple wars within the same Servlet Container

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.