you have to use the option '-b <host address>' if you start with run.bat
As <host address> parameter you use the different virtual IP addresses (or host names if you configure DNS)
On Windows you can go into the network adaptor properties and set multiple IP addresses. Google "windows multi-home" for detailed instructions. You have to turn off DHCP to do this. Then you can use those address in the -b option as Wolf-Dieter mentioned.
Thanks Fink / Peter,
Do we need to make any changes in the Jboss-services.xml file or for that matter in any configuration file for each instance that we make?
No. Since each JBoss AS instance will use its own IP address, there is no concern with port conflicts. For example, both instances can use port 8080 for http.
The only othert consideration for running multiple instances is that each must have it own server configuration. For example, copy server/default as server/instance1 and server/instance2. Then run them as follows:
run -c instance1 -b xx.xx.xx.xx
run -c instance2 -b yy.yy.yy.yy
You cannot run multiple instances using the same server config - you will end up with file acccess clashes.
This one did work for me. I want to configure these instances as windows services, I was not able to find any binary for the Jboss AS, In this does it mean that I have to create the services manually on the server?
You will need the service.bat and jbosssvc.exe files. These files come with JBoss AS 5.x and later (so you could copy the files form there, yes they will work with 4.2.x). Or you could get them by downloading JBoss Native.
As another option you could use the Tanuki Java Service wrapper.
Thanks for the help. I have been able to set up multiple Jboss instance using multiple IP on single NIC.