Redis Session Manager - add Fallback

2023-03-24 Thread Benny Kannengießer
Hi, I'm using the Redis Session Manager (https://jitpack.io/p/ran-jit/TomcatClusterRedisSessionManager) to replicate sessions in a Tomcat cluster. When the Redis database is down, a 500 response is returned in every request. In this case I would rather like to switch back to local session manage

AW: AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-08 Thread Benny Kannengießer
g slash On 04/02/2022 20:55, Christopher Schultz wrote: > Benny, > > On 2/4/22 11:06, Benny Kannengießer wrote: >> Thanks again Mark for the tip! >> >> Like you suggested I wrapped the response, overriding "setStatus()" - >> but the method didn

AW: AW: Redirect with 301 for directory requested without trailing slash

2022-02-04 Thread Benny Kannengießer
Thanks again Mark for the tip! Like you suggested I wrapped the response, overriding "setStatus()" - but the method didn't get called because the wrapper is not a subclass of the original response, it's just a façade. I think the "setStatus()" method of the wrapped response (inner object) was

AW: Redirect with 301 for directory requested without trailing slash

2022-02-03 Thread Benny Kannengießer
. Februar 2022 18:08 An: users@tomcat.apache.org Betreff: Re: Redirect with 301 for directory requested without trailing slash On 02/02/2022 15:21, Benny Kannengießer wrote: > Hi, > > I wonder how I could achieve that Tomcat sends a 301 (permanent redirect) > instead of 302 (tempora

Redirect with 301 for directory requested without trailing slash

2022-02-02 Thread Benny Kannengießer
Hi, I wonder how I could achieve that Tomcat sends a 301 (permanent redirect) instead of 302 (temporary redirect) when a directory is requested without a trailing slash. Currently, when Tomcat receives a request like http:///some-directory it redirects to htt