tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: AJP connector getPort
Date Tue, 25 Sep 2007 10:36:18 GMT
Andrew Hole wrote:
> HI!
> I have a solution with an apache with mod_jk  and 2 tomcat instances.
> How can I know with a JSP which tomcat instance process the request?
> Basically I want that my JSP show AJP connector port.
> Thanks

And now a third answer: if you really need the information in the http 
response (in the page), you can either

- set jvmRoute in server.xml. If your page uses a session, the jvmRoute 
will be sticked to the end of the session id, separated with a dot. To 
identify the individual Server, you must use different jvmRoutes for the 
- set a system property during startup. You can then output the value of 
the system property in your JSP. Again they need to be different for 
each instance. You can also set the jvmRoute from a system property.



To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message