On 13/01/2022 21:31, Christopher Schultz wrote:
All,
Does anyone know if it's possible and/or convenient to fetch the
jvmRoute from a servlet filter?
I'd like to write a Filter that puts some information like this into the
response headers:
X-App-Server-IP: 10.0.0.1
X-App-Server-Route: jvmRoute
Is it possible to get that information from only the request/context
information?
I assume you want the configured jvmRoute for the Engine.
If the jvmRoute has been configured via system property (see
StandardEngine) you could read it the same way.
Other than that you'd have to get it via Tomcat internals.
Mark
Maybe I'd have to get it via JMX which isn't great, but better than
nothing.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org