I have a load banancing solution with 2 apache servers in front of 2 Resin servers (host1
ort1 and host2
ort2)
In the resin.conf file, which must be exactly the same on all 4 servers (2 Apaches, 2 Resin), you must have 2 lines
<srun id='a' host='host1' port='port1'>
<srun id='b' host='host2' port='port2'>
On host1, you must start Resin with
httpd.sh -server 'a' ...
On host2, you must start Resin with
httpd.sh -server 'b'
That's all you have to do. The 2 Apache retrieve the right Resin server which initiate the session, with a cookie.
I didn't implement session attributes savings (via TCP ring or via
JDBC).