Greetings!

Environment: Tomcat 3.2, Apache 1.3.20, mod_jk, Solaris 2.8

Is there anyway to tell in my servlet which Tomcat worker is the servlet
running in? I have setup a few Tomcat workers on a Solaris box (Ports
9001-9004), and JkMounted the loadbalancer worker for my servlet which
allocates the request to one of the workers being serviced by the
loadbalance (JkMount /myapp/* loadbalancer) . I would like to display some
diagnostic info within my servlet to tell *which* worker is servicing the
request. For instance, would be nice if Tomcat had something along the lines
of request.getServerPort() which would tell me the Port # the worker is
running on ...

cheers,
Tony

Reply via email to