I am using JBossAS-5.1.x. I have set up JBoss Application Server Clustering using following configurations:
1) Created two nodes (profiles) from all profile of JBoss.
2) Started both the nodes (node0 and node1) with following runtime parameters to run.jar:
run.sh -c cmm_node0 -g CMMPartition -b 192.168.1.76 -Djboss.messaging.ServerPeerID=3 -Djboss.service.binding.set=ports-08
run.sh -c cmm_node1 -g CMMPartition -b 192.168.1.76 -Djboss.messaging.ServerPeerID=4 -Djboss.service.binding.set=ports-07
Node-0 has HA jnpPort as 1900:
22:33:45,214 INFO [HANamingService] Started HAJNDI bootstrap; jnpPort=1900, backlog=50, bindAddress=/192.168.1.76
22:33:45,225 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /192.168.1.76:1102, group=18.104.22.168, HA-JNDI address=192
Node-1 has HA jnpPort as 1800:
22:34:44,003 INFO [HANamingService] Started HAJNDI bootstrap; jnpPort=1800, backlog=50, bindAddress=/192.168.1.76
22:34:44,017 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /192.168.1.76:1102, group=22.214.171.124, HA-JNDI address=192
I am sending number of requests from a remote client these nodes by looking up JNDI Port Number 1800.
Now when one of the node gets down, the other node takes control of processing.
With this configurations the system is acting in Passive HA. But, I am willing to have both the nodes in cluster be in active mode. In the other words, requests received on both the nodes in cluster should be Load Balanced.
Can anyone please suggest pointers on how can the load balancing be achieved in cluster using HA-JNDI?