Configuring multiple WildFly instances to run on the same machine with different ports
In some cases, mostly because of architectural reasons, you may need to run multiple WildFly instances on a single server. You can do this by isolating each instance and giving it a different binding port.
Getting ready
First of all, we need to create a standalone configuration for each instance that we want to set up and run. All we need to do is replicate the concept explained in the Running WildFly from a custom configuration folder recipe. Suppose we want two running nodes/instances, we use the following commands:
$ cd $WILDFLY_HOME $ cp -a standalone node-1 $ cp -a standalone node-2
Now we are ready to configure each instance.
How to do it…
To achieve such a ...
Get WildFly Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.