This content has been marked as final.
Show 5 replies
-
1. Re: How to turn off session replication in JBoss 4.0.4?
somejunk Feb 1, 2007 11:43 AM (in response to somejunk)Since we are using modjk, I also commented out the following snapshot mode attributes:
name="SnapshotMode">instant
name="SnapshotInterval">2000 -
2. Re: How to turn off session replication in JBoss 4.0.4?
brian.stansberry Feb 1, 2007 11:54 AM (in response to somejunk)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. :-) -
3. Re: How to turn off session replication in JBoss 4.0.4?
somejunk Feb 1, 2007 1:39 PM (in response to somejunk)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? -
4. Re: How to turn off session replication in JBoss 4.0.4?
brian.stansberry Feb 1, 2007 1:51 PM (in response to somejunk)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. -
5. Re: How to turn off session replication in JBoss 4.0.4?
somejunk Feb 2, 2007 8:43 AM (in response to somejunk)Thanks it works fine now...
I noticed that fail over is seamless to end user. How is this possible without session replication?