I was looking at using the maxActiveConnections in the application context, what I find is. When I reach the limit, as expected the server will not create a new session, however does return a http 200 status code.
I am wondering would it be possible for me to change this behavior to return say a 300 range code to redirect to (in a production environment) load balancer.
I can see some potential issues with this, like the possibility of an infinite loop, but for now I am just exploring possible ways to prevent my tomcat servers becoming overloaded.
Does anyone have any thoughts or ideas for this type of solution?