Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-295

[GSS](7.1.z) Annotated EJB Client Interceptor being called more than once

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.9.Final
    • Fix Version/s: 4.0.10.Final
    • Labels:
      None

      Description

      EJB Client interceptor handleInvocation and handleInvocationResult are being invoked 4 times instead of once. Reproducer attached uses @ClientInterceptors and the standalone client invokes the EJB once.

      @ClientInterceptors({ClientInterceptor.class})
      @Remote
      public interface TestRemote {
        public String invoke(String id);
      }
      
      @Stateless
      
      public class TestSLSB implements TestRemote {
        public String invoke(String id) {
          log.info("Test Invoked");
          return "" + context.getContextData().get(interceptorInvocationCounterKey);
        }
      }
      
      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();
        }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  yersan Yeray Borges
                  Reporter:
                  yersan Yeray Borges
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: