It is very simple.
Start a JBoss with the 'all' configuration (option -c all). If you start a second one in the same way they will build a cluster.
Check that are no firewalls in between and both are in the same subnetwork.
If you want to separate cluster you should use "-g <clustername> -u <multicast-ip> -m <multicast-port>".
If you start two JBoss instances at the same system you can use the '-b' option to bind against a special IP or you can set the port bindings, see the wiki for options.
Thanks for your response. I'll try your suggestions out on my local machine..
but I came across this
Do we need to change all these port numbers and stuff? or can I simply run two instances with -c and then it'd form a cluster.
pls let me know your thoughts.