Test Load Balancing with Web server and Tomcat

  1. Start the Web server (Apache or IIS) you configured to work with Tomcat .
  2. Start two Tomcat servers configured as described in Configure Multiple Tomcat Servers.
  3. Start two Uniface Routers from two separate Uniface installations, either on the same machine or on different machines.
  4. 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.

  5. Click the Reload button several times. The same test1 page should be displayed each time.
  6. 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.

  7. Click the Reload button several times. The same test2 page from should be displayed each time.
  8. 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.