A customer uses Apache HTTP Webserver (AW) to redirect HTTP requests to Apache Tomcat (AT).
I need to add a special servlet to a current application being served by AT. This servlet will just start a thread and do nothing more. This thread's sole purpose is to listen to incoming TCP connections.
Is it possible to redirect inbound TCP connections received by AW, to AT ?
So AW will only act as a TCP proxy.
I prefer a proxy solution, tunneling is not preferable but I would consider it if there is no other solution.
I have no control over the client, which expects me to follow a strict custom text-based protocol.
Client -> AW -> AT
Client <- AW <- AT