If you start the 'all' profile with 'run.sh -c all ...' the instance will be cluster ready.
If you start a second one you will see a message that it join the cluster.
But your application must also be prepared for clustering, i.e. with annotations or xml elements that the bean is 'clustered' or web applications marked as 'distributed'. This wil activate the specific cluster features.
See Clustering FAQ's
I am not able to access my application. I also made application distributed means add <distributed> tag in web.xml.
I have started two node node1 and node2 but but I am not able to which url I need to use application node1 or node2 or some othere one..
I have tryed both node1 and node2 url but I am not able to access appliation.
I have used url for accessing application for node1 http://localhsot:8080/IFMIS
and for node to http://localhsot:8180/IFMIS because I have started this server with Port-1
also suggest me where I have to put WAR file for clustering..
Please help me.
I have a two machine and both machine haveing jboss6.0.0Final
I have copy all configuration and rename node1
1st machine IP address 22.214.171.124
I have started node1 configuration by command promt.
using this command run.bat -b 0.0.0.0 -c node1 -g ClusterA -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-01
2nd machine IP address 126.96.36.199
And on 2nd machine I have rename all configuration as node2
I have started node2 configuration by command promt.
using this command run.bat -b 0.0.0.0 -c node2 -g ClusterA -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-02
But I am not aware about which ip address i need to use using my application.
And where I have to put our war file.
In both node or need to put in single node.
And suppose multiple jboss running in the network the how they identify that these node are in cluster.
In your configuration the following URLs should work:
The war must be copied to both server deploy directories (server/node1/deploy and server/node2/deploy)
But if you use JBoss on different machines there is no need to set the binding.set, if you drop this property both servers run http on port 8080.
These node internally manage loadbalancing or any load balancer required for that.
Suppose I have given to user first node url 188.8.131.52:8180
If this node or machine fail then how to they manage clustering.
when user wite url of first node user request redirect to second node atomatically..
bec user knows only one url..
Its doesn't matter how many instance running.
Only EJB calls are load-balanced, these http requests are not.
Only if you have your application marked as <distributed> the session state will be replicated that in case of failure the other node can continue.
But this is another story and not my really knowledge.
I am starting two jboss intance on saprate sapreate machine.
I want to use two instance in a one cluster if I start node on sparate saprate machine.
I am starting node one in one machine in such way
run.bat -u 184.108.40.206 -b 0.0.0.0 -c node1 -g ClusterA -Djboss.messaging.ServerPeerID=3 -Djboss.service.binding.set=ports-01
And node2 in second machine in such way..
run.bat -u 220.127.116.11 -b 0.0.0.0 -c node2 -g ClusterA -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-01
but both node not forming cluster ,I am getting mesage only one member in cluster on each node console.
what mistake I am doing. Please let me know.