2 Replies Latest reply on Jun 12, 2006 4:42 AM by Prashan Wewelwala

    Tomcat Interceptor Hook?

    C. Snow Newbie

      Does anyone know how I can configure stand-alone Tomcat (v5) so I can add my own interceptor? I am trying to set JBoss security credentials (with SecurityAssociation) so I need Tomcat to call back into me before every request. I saw where the JBossSecurityMgrRealm does this by entending Value but that one seems to work in embedded Tomcat. I have my own security realm and implemented Value but nothing happened.

      I saw from old posts about a RequestInterceptor but it seems that concept has been replaced. Any guidance would be appreciated.

        • 1. Re: Tomcat Interceptor Hook?
          Scott Stark Master

          Your going to have to implement a Realm, and use a Valve to associate the callers identity, just as the JBossSecurityMgrRealm does. Valves are not specific to embedded tomcat. The only specific about the JBossSecurityMgrRealm to the embedded tomcat is how it looks up the security manager used for authentication and authorization.

          • 2. Re: Tomcat Interceptor Hook?
            Prashan Wewelwala Newbie


            I'm also in the need to have Tomcat running stand-alone. If you can give me a step by step guidance on how to do make a Realm like JBossSecurityMgrRealm. Please I need a detailed solution.