Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14245

[GSS](7.4.z) EJB Client Interceptor not invoked for Local Interface

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 7.1.1.GA
    • EJB
    • None

      EJB Client Interceptor is not invoked when specified on EJB's Local interface:

      @ClientInterceptors({ClientInterceptor.class})
      @Local
      public interface TestLocal {
        public void invoke();
      }
      
      public class ClientInterceptor implements EJBClientInterceptor {
        @Override
        public void handleInvocation(EJBClientInvocationContext context) throws Exception {    
          log.info("In the client interceptor handleInvocation : " + this.getClass().getName() + " " + context.getViewClass() + " " + context.getLocator());
          // Must make this call
          context.sendRequest();
        }
      
        @Override
        public Object handleInvocationResult(EJBClientInvocationContext context) throws Exception {
          log.info("In the client interceptor handleInvocationResult : " + this.getClass().getName() + " " + context.getViewClass() + " " + context.getLocator());
          // Must make this call
          return context.getResult();
        }
      }
      

            tadamski@redhat.com Tomasz Adamski
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: