Chapter 1. HTTP connectors
Red Hat JBoss Core Services (JBCS) includes two different HTTP connectors that the Apache HTTP Server can use to load-balance HTTP requests to a set of back-end servlet containers:
-
The Apache Tomcat connector (
mod_jk) supports the load balancing of HTTP requests to a set of servlet containers, while maintaining sticky sessions and communicating over the Apache JServ Protocol (AJP). -
The JBoss HTTP connector (
mod_proxy_cluster) is a more advanced load balancer thanmod_jk. Themod_proxy_clusterconnector provides all the functionality ofmod_jkand additional features such as real-time load-balancing calculations, application life-cycle control, automatic proxy discovery, and multiple protocol support.
JBCS and Red Hat Enterprise Linux (RHEL) provide separate distributions of the Apache HTTP Server. You can use the JBCS distribution of the Apache HTTP Server to connect to back-end application servers by using the mod_jk, mod_proxy_cluster, or mod_proxy connector as a proxy.
Consider the following guidelines:
-
From RHEL 7 onward, the JBCS and RHEL distributions of the Apache HTTP Server provide identical
mod_proxymodules. -
On RHEL versions 7 and 8, only the JBCS distribution of the Apache HTTP Server provides the
mod_jkandmod_proxy_clusterconnectors. -
From RHEL 9 onward, the JBCS and RHEL distributions of the Apache HTTP Server also provide identical copies of the
mod_jkconnector and themod_proxy_clusterconnector. -
Installing a JBCS distribution of the Apache HTTP Server from an archive file or from RPM packages by using the
groupinstalloption also automatically installs themod_jkandmod_proxy_clusterconnectors. -
Installing the RHEL 9 distribution of the Apache HTTP Server does not automatically install the
mod_jkandmod_proxy_clusterconnectors. In this situation, you can manually install the appropriatemod_jkormod_proxy_clusterpackage by using RHEL Application Streams. For more information, seeMod_jkinstallation andMod_proxy_clusterinstallation and upgrade.
The Apache HTTP Server Connectors and Load Balancing Guide describes how to install and configure the mod_jk and mod_proxy_cluster connectors that JBCS provides. This guide also includes a working example for basic load-balancing with mod_proxy_cluster.
Most file and directory paths shown in this guide are for an archive installation of JBCS on Red Hat Enterprise Linux. For other platforms, use the correct paths for your respective installation, as specified in the Red Hat JBoss Core Services Apache HTTP Server Installation Guide.