0

How to get session replication in zk 5 and tomcat 7?

asked 2013-12-13 18:39:32 +0800

alejandrospm gravatar image alejandrospm
1

updated 2013-12-17 18:25:26 +0800

Hi everyone

I have a environment with ZK 5 and Tomcat 7. I need to get a session replication using memchaced and memcached-session-manager(msm). I'm using kryo like serilization method with msm.

Right now, I have an issue using the ZK components. When I do click over some radio for example, I'm getting a alert message saying: "" and the buttons resend and cancel. So I will never able to advance to the next actions o request for server.

I have the next configuration in $CATALINA_BASE/conf/context.xml for msm:

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
        memcachedNodes="n1:192.168.56.101:11211"
        sticky="false"
        lockingMode="all"
        sessionBackupAsync="false"
        transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
        requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" />

I have all required libs in my tomcat libs according with msm documentation.

In another hand, I have the next configurationm parameters in my project's zul.xml:

<system-config>
        <disable-event-thread/>
        <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
        <id-generator-class>com.pagosonline.ppp4.web.common.zk.utils.ZkIdGenerator</id-generator-class>
        <disable-zscript>false</disable-zscript>
    </system-config>

    <session-config>
        <session-timeout>1800</session-timeout>    
        <timer-keep-alive>true</timer-keep-alive>
        <timeout-uri></timeout-uri>
    </session-config>

In the tomcat logs, I've seen that memcached service takes the id session correctly, but when I try to do something that involves zk components or events, I just get the message mentioned earlier.

I hope you could help me soon with this issue.

Thanks in advance.

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-12-13 18:39:32 +0800

Seen: 8 times

Last updated: Dec 17 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More