Test Load Balancing with Web server and Tomcat
- Start the Web server (Apache or IIS) you configured to work with Tomcat .
- Start two Tomcat servers configured as described in Configure Multiple Tomcat Servers.
- Start two Uniface Routers from two separate Uniface installations, either on the same machine or on different machines.
-
Open one browser and enter the WRD URL to run a test page, for example:
http://localhost:8080/uniface/wrd/sptest
The Uniface server page test1 from Tomcat server 1 should be displayed.
- Click the Reload button several times. The same test1 page should be displayed each time.
-
Open another browser and enter the WRD URL to run a test page, for example:
http://localhost:8080/uniface/wrd/sptest
The Uniface server page test2 from Tomcat server 2 should be displayed.
- Click the Reload button several times. The same test2 page from should be displayed each time.
-
Open a third browser an enter the WRD URL to run a test page, for example:
http://localhost:8080/uniface/sptest
.The Uniface server page test1 from Tomcat1 should be displayed. This indicates that the load balancing is working correctly.