-
Bug
-
Resolution: Done
-
Major
-
7.1.1.GA
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(); }
- is cloned by
-
EJBCLIENT-295 [GSS](7.1.z) Annotated EJB Client Interceptor being called more than once
- Resolved
- is incorporated by
-
JBEAP-14256 [GSS](7.1.z) Upgrade JBoss Ejb Client from 4.0.9 to 4.0.10.Final
- Closed
- relates to
-
JBEAP-14243 [GSS](7.1.z) EJB invocation for Remote interface fails when Client Interceptor registered via META-INF/services/org.jboss.ejb.client.EJBClientInterceptor
- Closed