void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
public Object getResult() throws Exception { return LocalEjbReceiver.clone(invocation.getInvokedMethod().getReturnType(), resultCloner, result, allowPassByReference); }
EJBClientInvocationContext(final EJBInvocationHandler<?> invocationHandler, final EJBClientContext ejbClientContext, final Object invokedProxy, final Object[] parameters, final EJBProxyInformation.ProxyMethodInfo methodInfo, final int allowedRetries, final Supplier<AuthenticationContext> authenticationContextSupplier) { super(invocationHandler.getLocator(), ejbClientContext); this.invocationHandler = invocationHandler; authenticationContext = authenticationContextSupplier != null ? authenticationContextSupplier.get() : AuthenticationContext.captureCurrent(); this.invokedProxy = invokedProxy; this.parameters = parameters; this.methodInfo = methodInfo; long timeout = invocationHandler.getInvocationTimeout(); if (timeout == -1) { timeout = ejbClientContext.getInvocationTimeout(); } this.timeout = timeout; remainingRetries = allowedRetries; interceptorList = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); }
invocationContext.putAttachment(AttachmentKeys.RESPONSE_COMPRESSION_LEVEL, compressionLevel); if (Logs.REMOTING.isTraceEnabled()) { Logs.REMOTING.trace("Letting the server know that the response of method " + invocationContext.getInvokedMethod() + " has to be compressed with compression level = " + compressionLevel); Logs.REMOTING.trace("Using a compressing stream with compression level = " + compressionLevel + " for request data for EJB invocation on method " + invocationContext.getInvokedMethod());
HttpEJBInvocationBuilder builder = new HttpEJBInvocationBuilder() .setInvocationType(HttpEJBInvocationBuilder.InvocationType.METHOD_INVOCATION) .setMethod(clientInvocationContext.getInvokedMethod()) .setAppName(locator.getAppName()) .setModuleName(locator.getModuleName()) if (clientInvocationContext.getInvokedMethod().getReturnType() == Future.class) { receiverContext.proceedAsynchronously(); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString); } else if (clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { if (clientInvocationContext.getInvokedMethod().isAnnotationPresent(Asynchronous.class)) { receiverContext.proceedAsynchronously(); } else if (ejbData.asyncMethods.contains(clientInvocationContext.getInvokedMethod())) { receiverContext.proceedAsynchronously(); if (response.getResponseCode() == StatusCodes.ACCEPTED && clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { ejbData.asyncMethods.add(clientInvocationContext.getInvokedMethod());
final EJBClientContext.InterceptorList list = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); final EJBClientInterceptorInformation[] chain = list.getInformation(); final EJBReceiverInvocationContext.ResultProducer resultProducer;
final ObjectCloner parameterCloner = createCloner(paramConfig); final Method method = view.getMethod(invocation.getInvokedMethod().getName(), DescriptorUtils.methodDescriptor(invocation.getInvokedMethod()));
marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(out))); final Method invokedMethod = invocationContext.getInvokedMethod(); final Object[] parameters = invocationContext.getParameters();
void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
void proceedAsynchronously() { if (getInvokedMethod().getReturnType() == void.class) { resultReady(EJBReceiverInvocationContext.ResultProducer.NULL); } }
EJBClientInvocationContext(final EJBInvocationHandler<?> invocationHandler, final EJBClientContext ejbClientContext, final Object invokedProxy, final Object[] parameters, final EJBProxyInformation.ProxyMethodInfo methodInfo, final int allowedRetries, final Supplier<AuthenticationContext> authenticationContextSupplier) { super(invocationHandler.getLocator(), ejbClientContext); this.invocationHandler = invocationHandler; authenticationContext = authenticationContextSupplier != null ? authenticationContextSupplier.get() : AuthenticationContext.captureCurrent(); this.invokedProxy = invokedProxy; this.parameters = parameters; this.methodInfo = methodInfo; long timeout = invocationHandler.getInvocationTimeout(); if (timeout == -1) { timeout = ejbClientContext.getInvocationTimeout(); } this.timeout = timeout; remainingRetries = allowedRetries; interceptorList = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); }
EJBClientInvocationContext(final EJBInvocationHandler<?> invocationHandler, final EJBClientContext ejbClientContext, final Object invokedProxy, final Object[] parameters, final EJBProxyInformation.ProxyMethodInfo methodInfo, final int allowedRetries, final Supplier<AuthenticationContext> authenticationContextSupplier) { super(invocationHandler.getLocator(), ejbClientContext); this.invocationHandler = invocationHandler; authenticationContext = authenticationContextSupplier != null ? authenticationContextSupplier.get() : AuthenticationContext.captureCurrent(); this.invokedProxy = invokedProxy; this.parameters = parameters; this.methodInfo = methodInfo; long timeout = invocationHandler.getInvocationTimeout(); if (timeout == -1) { timeout = ejbClientContext.getInvocationTimeout(); } this.timeout = timeout; remainingRetries = allowedRetries; interceptorList = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); }
invocationContext.putAttachment(AttachmentKeys.RESPONSE_COMPRESSION_LEVEL, compressionLevel); if (Logs.REMOTING.isTraceEnabled()) { Logs.REMOTING.trace("Letting the server know that the response of method " + invocationContext.getInvokedMethod() + " has to be compressed with compression level = " + compressionLevel); Logs.REMOTING.trace("Using a compressing stream with compression level = " + compressionLevel + " for request data for EJB invocation on method " + invocationContext.getInvokedMethod());
invocationContext.putAttachment(AttachmentKeys.RESPONSE_COMPRESSION_LEVEL, compressionLevel); if (Logs.REMOTING.isTraceEnabled()) { Logs.REMOTING.trace("Letting the server know that the response of method " + invocationContext.getInvokedMethod() + " has to be compressed with compression level = " + compressionLevel); Logs.REMOTING.trace("Using a compressing stream with compression level = " + compressionLevel + " for request data for EJB invocation on method " + invocationContext.getInvokedMethod());
HttpEJBInvocationBuilder builder = new HttpEJBInvocationBuilder() .setInvocationType(HttpEJBInvocationBuilder.InvocationType.METHOD_INVOCATION) .setMethod(clientInvocationContext.getInvokedMethod()) .setAppName(locator.getAppName()) .setModuleName(locator.getModuleName()) if (clientInvocationContext.getInvokedMethod().getReturnType() == Future.class) { receiverContext.proceedAsynchronously(); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString); } else if (clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { if (clientInvocationContext.getInvokedMethod().isAnnotationPresent(Asynchronous.class)) { receiverContext.proceedAsynchronously(); } else if (ejbData.asyncMethods.contains(clientInvocationContext.getInvokedMethod())) { receiverContext.proceedAsynchronously(); if (response.getResponseCode() == StatusCodes.ACCEPTED && clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { ejbData.asyncMethods.add(clientInvocationContext.getInvokedMethod());
HttpEJBInvocationBuilder builder = new HttpEJBInvocationBuilder() .setInvocationType(HttpEJBInvocationBuilder.InvocationType.METHOD_INVOCATION) .setMethod(clientInvocationContext.getInvokedMethod()) .setAppName(locator.getAppName()) .setModuleName(locator.getModuleName()) if (clientInvocationContext.getInvokedMethod().getReturnType() == Future.class) { receiverContext.proceedAsynchronously(); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString); } else if (clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { if (clientInvocationContext.getInvokedMethod().isAnnotationPresent(Asynchronous.class)) { receiverContext.proceedAsynchronously(); } else if (ejbData.asyncMethods.contains(clientInvocationContext.getInvokedMethod())) { receiverContext.proceedAsynchronously(); if (response.getResponseCode() == StatusCodes.ACCEPTED && clientInvocationContext.getInvokedMethod().getReturnType() == void.class) { ejbData.asyncMethods.add(clientInvocationContext.getInvokedMethod());
final EJBClientContext.InterceptorList list = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); final EJBClientInterceptorInformation[] chain = list.getInformation(); final EJBReceiverInvocationContext.ResultProducer resultProducer;
final EJBClientContext.InterceptorList list = getClientContext().getInterceptors(getViewClass(), getInvokedMethod()); final EJBClientInterceptorInformation[] chain = list.getInformation(); final EJBReceiverInvocationContext.ResultProducer resultProducer;
final Method method = view.getMethod(invocation.getInvokedMethod().getName(), DescriptorUtils.methodDescriptor(invocation.getInvokedMethod())); final Object clonedResult = clone(invocation.getInvokedMethod().getReturnType(), resultCloner, result, allowPassByReference); receiverContext.resultReady(new ImmediateResultProducer(clonedResult));
marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(out))); final Method invokedMethod = invocationContext.getInvokedMethod(); final Object[] parameters = invocationContext.getParameters();