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".
Does anyone know how to get JBoss/Tomcat to use this setting?
Thanks in advance for your help,
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).