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 servers. - 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.

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to