Search code examples
jbossjboss7.xfailover

JBOSS AS 7 Load Balancing with Server Failover


I have 2 instances of Jboss servers running on eg: 127.0.0.1 and 127.0.0.2.

I have implemented Jboss load balancing, but am not sure how to achieve server failover. I do not have a webserver to monitor the heartbeat and hence using mod_cluster is out the question. Is there any way I can achieve failover using only the two available servers?

Any help would be appreciated. Thanks.


Solution

  • JBoss clustering automatically provides JNDI and EJB failover and also HTTP session replication.

    If your JBoss AS nodes are in a cluster then the failover should just work.

    The Documentation refers to an older version of JBoss (5.1) but it has clear descriptions of how JBoss clustering works.