I spent a little bit of time getting a JBoss cluster running on my development machine and then configuring a Apache 2.2.17 server to load balance between the 2 node cluster. Here is how I did it.
I had to enable the following modules on Apache:
Then, I had to setup the rules for the balancing Apache proxy at the end of the conf/httpd.conf file:
Then, I needed to enable the conf/mod-jk.conf file, update the http.conf to reflect this, and add this VirtualHost:
Then, I needed a conf/uriworkermap.properties file:
Then, I needed a conf/workers.properties for mod-jk:
And, that is basically it. You can download my portable , self extracting zip file, of my Tomcat and JBoss cluster running on "localhost". Just unzip and read the readme file enclosed. It works as-is , by navigating to the app called "http://test.local.host" after you have it running.
Download zip archive here.