I have a scenario where I have single entry point Servlet and further Servlets that requests are forwarded to that undertake heavy processing.
I am looking at options to distribute this load and I would like to know if it is possible using Tomcat or another platform to forward requests between Servlets sitting on different servers using a cluster type configuration or similar.
I have found some documentation on clustering Servlets and Tomcat but none indicate if Servlet request forwarding is possible from what I can see.
You could distribute it over webapps in a clustered Tomcat environment and add
crossContext="true"to the<Context>element of the webapps in question. Here’s an extract of Tomcat’s Context Configuration Reference:This way you can obtain the desired
RequestDispatcheras follows: