I'm trying to use the HTTPLoadBalancer to load balance some HTTP/SOAP requests leaving JBoss to a group of servers for futher processing. I want to distribute the workload on these other servers.
I thought that the HTTPLoadbalancer would do a nice job, but I have hit some problems.
It seems like the HTTPLoadbalancer don't copy the content of the HTTP/SOAP request, but just the headers and set the "Content-Lenght" to zero.
From the same client I have sent the SOAP Request both via the LB and directly, while sniffing on the connection with Etheral to spot any differences.
The direct SOAP request looks like:
POST /provatomgs/ReceiverServlet HTTP/1.0 Host: rock.mobilecohesion.com:8080 Content-Type: text/xml; charset=utf-8 Content-Length: 1974 SOAPAction: "sendMessage" <?xml version='1.0' encoding='UTF-8'?> <env:Envelope xmlns:provato ... </env:Envelope>
POST /provatomgs/ReceiverServlet HTTP/1.1 content-type: text/xml; charset=utf-8 soapaction: "sendMessage" User-Agent: Jakarta Commons-HttpClient/2.0final Host: rock.mobilecohesion.com:8080 Content-Length: 0