Currently, the SOAP STS waits 10 seconds after the container start before publishing the STS instances. When load balancing the SOAP STS, the load balancer needs a way to determine whether the SOAP STS is ready for use.
A crude solution would be to fetch the WSDL of a particular STS instance, however, when fetching the WSDL, an audit event is fired, which means the audit logs would be filled with health checks.
A better way would be to have a separate jsp that returns the number of deployed instances and says whether the SOAP STS is READY or not. Something like this:
Would return something like when it is ready:
When it isn't ready the response would look like:
The num-instances-required parameter would set when the health check page declares that is READY based on the number of published STS instances.