O'Reilly logo

JBoss: Developer's Guide by Elvadas Nono Woguia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Load balancing with an Undertow subsystem

Considering the fact that we have two running undertow instances, we will configure a WildFly application server Undertow subsystem to act as a load balancer in the following section. Start two instances of the beosbank-undertow-service project using the following:

$mvn exec:java -Dundertow.port=7071$mvn exec:java -Dundertow.port=7072

Download, install, and run a WildFly application server in standalone mode:

unzip $HOME/Downloads/wildfly-11.0.0.Alpha1.zipcd   wildfly-11.0.0.Alpha1/bin$ ./standalone.sh

WildFly is now running and listening on port 9990; connect to the server using jboss-cli, as follows:

./jboss-cli.sh --connect

For Undertow to act as a static load balancer behind a set of backend systems, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required