[jboss-user] [Clustering/JBoss] - Session is getting replicated on JBoss-4.0.1 only one time.

michael_kov do-not-reply at jboss.com
Wed Aug 9 14:34:18 EDT 2006


Hello,
I have 2 linux servers running jboss 4.0.1  and using jboss-cache.jar 1.2.4.  
Session replication is working correctly ONLY first time, after both servers has been restarted. So the second time whenever i change the values of the session (i even tried to create a new one) they have not been replicated across ..
In my test.jsp  I am using this:  request.getSession().setAttribute("test","test1") ; request.getSession().getAttribute("test") ;  
Here is configuration I am using:
In  web.xml :  (both servers)
<distributable/>    
In jboss-web.xml :  (both servers)

  | <replication-config>     <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
  |       <replication-granularity>attribute</replication-granularity>
  |  </replication-config>
In tc5-cluster-service.xml
<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
  | .
  | <attribute name="CacheMode">REPL_SYNC</attribute>
  | ..
  | <UDP mcast_addr="230.1.2.3" mcast_port="45577" bind_addr="192.168.1.1"
  |                     ip_ttl="64" ip_mcast="true"
  |                     mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
  |                     ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
  |                     loopback="false"/>

bind_addr="192.168.1.2"  is set for second server. 
In jbossweb-tomcat50.sar/META-INF/jboss-service.xml (both servers)
         <depends>jboss.cache:service=TomcatClusteringCache</depends>
  |       <depends>jboss:service=TransactionManager</depends>
  

Thanks in advance!
Michael




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

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



More information about the jboss-user mailing list