shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kalle Korhonen <kalle.o.korho...@gmail.com>
Subject Re: Share Session between multiple war files
Date Fri, 26 Jul 2013 15:25:37 GMT
On Fri, Jul 26, 2013 at 3:46 AM, Stefan Lorenz <Stefan.Lorenz@persis.de>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

Mime
View raw message