1 Reply Latest reply on Apr 22, 2005 7:10 PM by anguyen

    Interceptors on session beans not functioning

    blurredweasel

      I have an interceptor defined that prints out the class and method name going both into and out of (hopefully) all beans. I have both a client and a server interceptor defined, and have tried adding them to the standardjboss.xml file, but I only get traces for CMP beans, and not session beans. I don't understand what the problem is.

      My app isn't packaged into an ear, but instead just a .jar and a .war file. And the interceptor is packaged up as a jar file.

      Any help would be wonderful, is there some option I'm missing?

      -Chris

        • 1. Re: Interceptors on session beans not functioning

          It sounds like perhaps you only added the interceptor to one container configuration.

          In 3.2.7, I count 17 container configurations in standardjboss.xml. You should at least add your interceptor to all containers in which you're deploying EJBs.

          For the client interceptors, I think you need to do the same thing for all invoker-proxy-bindings.