[jboss-user] [Clustering/JBoss] - Session replication fails

maildesale do-not-reply at jboss.com
Wed Jan 21 02:42:02 EST 2009


Dear All,

I am trying Verticle clustering using JBoss AS v5.0 GA and Apache HTTPD using mod_jk.  I am able to do failover from node1 to node2 but session replication is not happening.

JBoss-web.xml
--------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<jboss-web>
  <replication-config>
      <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
      <replication-granularity>SESSION</replication-granularity> <!-- <replication-granularity>ATTRIBUTE</replication-granularity> -->
      <replication-field-batch-mode>true</replication-field-batch-mode>
  </replication-config>
</jboss-web>
-------------------------------------------
worker.properties
------------------------------------------
# for mapping requests
worker.list=loadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.disabled=false
worker.node1.socket_timeout=10
worker.node1.connect_timeout=20000

# Define Node2
#modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host=localhost
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node1.disabled=false
worker.node1.socket_timeout=10
worker.node1.connect_timeout=20000

# Load-balancing behavior
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=false
worker.loadbalancer.sticky_session_force=false
worker.loadbalancer.method=R
worker.loadbalancer.lock=P

#Status worker for managing load balancer
worker.status.type=status

------------------------------------------
Can you please suggest me how to do the same? Both of nodes with apache are on same machine.


~Sandip

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

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



More information about the jboss-user mailing list