0 Replies Latest reply on Aug 10, 2005 4:23 AM by markus horehled

    Custom Client Interceptor obviously not called

    markus horehled Newbie

      I try to add a custom client interceptor to the client interceptor chain:

      <invoker-proxy-binding>
       <name>stateless-rmi-invoker-cc</name>
       <invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean>
       <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
       <proxy-factory-config>
       <client-interceptors>
       <home>
       <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor>
       <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
       <interceptor>com.alg.cc.interceptors.ClientInterceptor</interceptor> <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
       <interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor</interceptor>
       <interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor</interceptor>
       </home>
       <bean>
       <interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor>
       <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
       <interceptor>com.mho.constrChk.interceptors.ClientInterceptor</interceptor>
       <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
       <interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor</interceptor>
       <interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor</interceptor>
       </bean>
       </client-interceptors>
       </proxy-factory-config>
       </invoker-proxy-binding>
       </invoker-proxy-bindings>


      Whereas everything works fine, when calling from the client side, it obviously is not called (anymore) when I call an according bean method direclty from a servlet.
      As far as I understand the clients interceptor chain should always be traversed, the last interceptor should then determine whether it is within the same VM or not ... !?
      Any idea, why the client interceptor is not traversed from a servlet???
      Thank you!