1 Reply Latest reply on Nov 9, 2003 6:29 AM by derry

    Can't set Tomcat's useDirtyFlag for HttpSession clustering

    ssilvert

      I am running JBoss/Tomcat and I have HttpSession replication working (hooray!!).

      However, the session will only replicate if I do a setAttribute or removeAttribute on the session. If I change an object that is already bound to the session, it will not replicate.

      I need the session to replicate with every request.

      After some digging, I found out that Tomcat has a setting called "useDirtyFlag" that takes care of this. You just set it to false and it replicates with each request. My only problem is that I can't figure out how to set this Tomcat parameter in JBoss.

      Here is a link to an explanation of Tomcat's cluster-server.xml file. It tells about the "useDirtyFlag".
      http://archives2.real-time.com/pipermail/tomcat-devel/2003-February/047273.html

      Does anyone know how to get JBoss/Tomcat to use this setting?

      Thanks in advance for your help,

      Stan

        • 1. Re: Can't set Tomcat's useDirtyFlag for HttpSession clusteri
          derry

          You can set EconomicSnapshotting to false (in the Tomcat-plugin config).
          But then the session is replicated after EVERY request (thats what you want). This may cost you a lot of performance!

          There is no easy way to find out which dependent objects have been changed (if you know one let me know).

          CU
          Thomas