Setting up Multiple Instances of JBoss on the same machine
I don't have several physical servers but I want to run several instances of JBossAS. What can I do?
Two options are available:
Binding each instance to a different ip adress (recommended approach)
Server instances using the same port set can run concurrently on the same server if bound to a different ip address.
$run.sh -c node1 -b 192.168.4.151
$run.sh -c node2 -b 192.168.4.152
We highly recommend using this technique over the ServiceBindingManager approach (see below) which makes server log debugging very difficult.
This blog is a good guide to how to achieve this in the Windows family of operating systems.
Configuring different port sets using the ServiceBindingManager
The procedure is all explained in this wiki ConfigurePorts