We will now look at the configuration needed so that the two instances of the helloworld-cluster
application available at http://localhost:8080/helloworld-cluster/
and http://localhost:8090/helloworld-cluster/
are served as one logical application, by using Apache web server, the mod_jk
module, and AJP connectors in Geronimo.
To use the server instance inst2 with mod_jk
, we will need to create another worker similar to geronimo_ajp13
in workers.properties
. This second worker will point to the AJP connector in inst2. The configuration is as given below:
worker.list=geronimo_inst2_ajp13 worker.geronimo_inst2_ajp13.port=8019 worker.geronimo_inst2_ajp13.host=localhost worker.geronimo_inst2_ajp13.type=ajp13
Add this configuration to workers.properties
.
The two workers geronimo_ajp13
and geronimo_inst2_ajp13
are of type ajp13
. Now create another worker of type lb
to balance the load between geronimo_ajp13
and geronimo_inst2_ajp13...