Hi Wolf-Dieter Fink, I have started jboss 6 in two machines for clustering with the following commands,
Machine 1 : run -c default -g Docspartition -u 228.11.11.11 -b 192.168.134.54 -Djboss.messaging.ServerPeerID=1
Machine 1 : run -c default -g Docspartition -u 228.11.11.11 -b 192.168.134.58 -Djboss.messaging.ServerPeerID=2
(multicast address which I have used is in the udp that is in jgroups-channelfactory-stacks.xml inside clustering folder)
Please see the attached log info for cluster enabled.
Also I am geeting merge=false, should it to true, if so what should I do for doing so New cluster view for partition Docspartition (id: 1, delta: 1, merge: false) : [192.168.134.54:1076, 192.168.134.58:1099]
Please help me to find where should I point my url for clustering mode. Like 192.168.134.54:8080/applicationName or shuold it be started with some other url.
Note: I have included <distributable/> tag in the web.xml file already.
Please help me with the steps to stop first node and the url should automatically work with the second node. Let me know if I have to change some configuration settings.
FYI I have tried in the -c all also. I am getting the same message and response in both the directory.
Thanks in advancd.
So perfect you have a running cluster.
This is only for session replication and caches, EJB calls are loadbalanced if you have a remote client.
You want to loadbalance a web app, for this you need a loadbalancer in front. Most use Apache as SW or a HW loadbalancer. This will route the xyz:80 calls to one of the JBoss instances.
With mod-cluster (not sure whether this is in AS6) it is easy because the node 'advertise' itselve to the apache.
Thank you so much Wolf-Dieter, I have got it working by adding the Load balancer Apache
No problem, your welcome