Red Hat Training

A Red Hat training course is available for Red Hat JBoss Web Server

Chapter 8. Advanced Configuration

8.1. Static Proxy Configuration

Server advertisement allows worker nodes to dynamically discover and register themselves with proxy servers. If UDP broadcast is not available or server advertisement is disabled then worker nodes must be configured with a static list of proxy server addresses and ports.
Use the following procedure to configure a JBoss Enterprise Web Server worker node to operate with a static list of proxy servers.
Prerequisites

Ensure that the following prerequisites are satisfied before initiating the procedure.

Procedure 8.1. Configure Web Server Worker Node with Static Proxy List

  1. Disable Dynamic Proxy Discovery

    Edit the file JBOSS_EWS_DIST/tomcat6/conf/server.xml. and set the advertise property of the ModClusterListener to false:
  2. Define a mod_cluster listener

    Add a <Listener> element to the server.xml file.
    <Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true"/>
  3. Create a static proxy server list

    Add a comma separated list of proxies in the form of IP_ADDRESS:PORT as the proxyList property of the ModClusterListener <Listener> element.

    Example 8.1. Example Static Proxy List

    <Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" advertise="false" stickySession="true" stickySessionForce="false" stickySessionRemove="true" proxyList="10.33.144.3:6666,10.33.144.1:6666"/>