Push a principal object to Servlet ThreadLocal context

2006-07-31 Thread Zihui Ren
Hi All, I created a Realm implementation which authenticates username/password with credential stored in database. After authentication, I get a Principal object and I need to push this object to a ThreadLocal object so that any object run in Servlet can get the principal to do further authorizat

Re: How to get request count of Tomcat server?

2006-04-28 Thread Zihui Ren
I didn't want to patch any additional stuff to server or change the OOTB configuration, but it seems I have to Thanks On 4/28/06, Yoav Shapira <[EMAIL PROTECTED]> wrote: Hola, Actually, it was. Just suggesting some alternatives IF there's not currently available implementation and IF

How to get request count of Tomcat server?

2006-04-27 Thread Zihui Ren
Hi, all I need to get request count for a webapp and for the whole Tomcat server. But I look around Tomcat MBeans in JConsole and only found that I could get request count and error count for individual Servlet via attribute of corresponding StandardWrapper Mbean " Catalina:j2eeType=Servlet,name