开发者

Seam Framework Clustering: Login state NOT replicating (Seam 2.2.2 + Tomcat 6.0.32)

开发者 https://www.devze.com 2023-03-26 11:47 出处:网络
I am currently trying to make an application written from scratch to be deployable on a Tomcat 6.0.32 cluster, with session/state replication.

I am currently trying to make an application written from scratch to be deployable on a Tomcat 6.0.32 cluster, with session/state replication.

Everything works fine except for one thing: if one node of the cluster fails and a request is being redirected to another node, I am no longer logged in. After I log back in, the state of the Session and Conversation scoped beans is restored, so replication basically works except for the login part.

I have tried everything and I really ran out of ideas. Can someone please give me a hint ?

My configuration is as follows: Apache HTTPD and modjk, Apache Tomcat 6.0.32 ,Seam 2.2.2.Final

I have marked the application distributable in web.xml with:

<distributable />

In components.xml:

...
<core:init debug="false" distributable="true" />
...
<security:identity authenticate-method="#{authenticator.authenticate}" />
...

The authenticator class (basically you can login without user/pass at the moment):

@Name("authenticator")
@Scope(ScopeType.EVENT)
public class ResidentAuthenticator implements Serializable {

private static final long serialVersionUID = 4655419361907742527L;

    public boolea开发者_开发百科n authenticate() {

        return true;
    }
}

So, does anybody have an idea? Thanks !

0

精彩评论

暂无评论...
验证码 换一张
取 消