Mapping a specific servlet to be the default servlet in Tomcat
问题 I am trying to implement a servlet that gets raw requests, and decide either to process them, or forward them to another backend server. It is similar to a load-balancer, where a received request is forwarded to one of the (in my case 2) destinations. One of the destination is remote (on another host). Furthermore, the requests could come to the root (http://mycompany.com/). Since I want to get raw requests, I implemented my own servlet (subclassing HttpServlet ), and that works great. My