On Fri, Jul 26, 2013 at 3:46 AM, Stefan Lorenz <[email protected]>wrote:
> I’ve an ear project with multiple war files,**** > > the problem that I get is, that the session changes if I change from one > war-Context to another.**** > > ** ** > > I’ve configured the ehCache and sessionDAO etc. correctly, I think…**** > > ** ** > > On glassfish startup every war context loads Shiro correctly.**** > > ** ** > > WebModule[null] ServletContext.log():Initializing Shiro environment**** > > INFO org.apache.shiro.web.env.EnvironmentLoader - Starting Shiro > environment initialization.**** > > INFO org.apache.shiro.cache.ehcache.EhCacheManager - Using existing > EHCache named [myAuthorizationCache]**** > > INFO org.apache.shiro.config.IniSecurityManagerFactory - Realms have been > explicitly set on the SecurityManager instance - auto-setting of realms > will not occur.**** > > INFO org.apache.shiro.web.env.EnvironmentLoader - Shiro environment > initialized in 3 ms.**** > > Is it really necessary to use Terracotta or Coherence for that?**** > > If "it" is session sharing, then answer is no - you can also use a container specific implementation, such as session replication in Tomcat ( http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html). Kalle
