You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by js...@patkai.com on 2000/07/13 04:49:21 UTC
Retrieving web server IP from remote servlet engine
Hi! I was wondering if anyone can help me with this problem. I have a
setup that includes load balanced web servers with the Tomcat module, and
remote servlet engines on different machines. From within a servlet, I
need to retrieve a possibly dynamic page from the specific web server that
dispatched the servlet request to the remote servlet engine. Due to the
sessioning of non-servlet components on the site, IP load-balancing, and
other issues, I must make my HTTP request (for the page) to the original
server and not to another machine behind the load balancer.
I've looked at the Tomcat source, but I couldn't figure out how a servlet
would get the web server's IP address. Is there a way to do this? If
not, what modifications would I need to make to the Tomcat engine (without
changing anything on the actual web server machines?)
Thanks so much!
Joy