Since we are using modjk, I also commented out the following snapshot mode attributes:
Just remove the
<distributable/>element from your web.xml; that's all you need to do. Leave the other stuff as is.
BTW, when you post XML, use the 'code' button to put in tags before and after. That's the trick to making it appear correctly. :-)
Thanks for your reply...
If I understand it correctly, I do not have to change anything in JBoss to turn off session replication.
I just have to remove distributable tag from web.xml in the ear file. Is that right?
Yep; that's it.
If you're never going to deploy any distributable webapps and want to remove the service that makes session replication possible, you can remove the tc5-cluster.sar and comment out the
<depends>jboss.cache:service=TomcatClusteringCache</depends>tag in jbossweb-tomcat55.sar/META-INF/jboss-service.xml.
See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming for more on removing unwanted services; clustering stuff covered at the bottom. But again, if web.xml doesn't have the distributable tag, that webapp won't use session replication.
Thanks it works fine now...
I noticed that fail over is seamless to end user. How is this possible without session replication?