I could run my node 1 successfully with -b 0.0.0.0 and could bind jbgroups to 192.168.1.38 with system property -Djgroups.bind_addr=192.168.1.38.
Did the same on node 2 with bind addr as 192.168.1.39, but getting following error, could anybody pls tell me how to avoid the following exception. This is not letting me run jboss on node 2.
2010-08-27 11:07:34,371 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=HAPartition state=Create
java.lang.IllegalStateException: Found member 127.0.0.1:1099 in current view that duplicates us (127.0.0.1:1099). This node cannot join partition until duplicate member has been removed
You become in trouble with the port settings.
I think you should drop -Djgroups.bind_addr= and use the IP wiht the -b option instead.
This will separate all ports to the different IPs.
If you start a JBoss>4.2 you have to set the identifier for JBMessaging with the -Djboss.messaging.ServerPeerID=<a number>.