Hi

I was able to configure well sticky sessions due to this forum, for jboss 
3.2.5, but now something goes wrong.

I want to use sticky session, not session replication on jboss 3.2.7.

Now the server keeps the session as far as I are on the same page, so I can 
refresh many times and the session id and server are the same.
I have made a test.jsp.

Then navigate into the site and check the session id and the server from time 
to time. I can see the request is round robin between the servers. I do not 
understand why this is happening when navigate and not when I am on the same 
page and refresh again an again.

What I have done is I have changed jboss-service.xml as I found out here: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClusteringFAQ.

"Since 3.2.6, HTTP session replication is based on JBossCache and more 
precisely the TomcatClusteringCacheservice.
In 3.2.6, 3.2.7, 4.0.1 and 4.0.1SP1, the dependency on this service is missing 
in Tomcat's jboss-service.xml.

To fix it, please edit /all/jbossweb-tomcat5x.sar/META-INF/jboss-service.xml 
and enable the <depends 
optional-attribute-name="CacheName<http://wiki.jboss.org/wiki/Edit.jsp?page=CacheName>">
 element, update the MBean ObjectName 
<http://wiki.jboss.org/wiki/Wiki.jsp?page=ObjectName> as well as the element 
itself.

The resulting code should look as follows:
<!--
Configuration for HTTP Session Clustering using JBossCache
-->
jboss.cache:service=TomcatClusteringCache
instead of
<!--
Configuration for HTTP Session Clustering using JBossCache
-->
<!--
<depends optional-attribute-name="CacheName">jboss.cache:service=TreeCache
--> 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926371#3926371

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926371


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to