public void handleInvocation(final EJBClientInvocationContext context) throws Exception { final NamingProvider namingProvider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); if (namingProvider != null) { // make sure the naming provider is available to invocations context.putAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY, namingProvider); } if (namingProvider == null || context.getDestination() != null || context.getLocator().getAffinity() != Affinity.NONE) { context.putAttachment(SKIP_MISSING_TARGET, Boolean.TRUE); context.sendRequest(); } else { if (setDestination(context, namingProvider)) try { context.sendRequest(); } catch (NoSuchEJBException | RequestSendFailedException e) { processMissingTarget(context); throw e; } else { throw Logs.INVOCATION.noMoreDestinations(); } } }
if (version < 3 && key.equals(Affinity.WEAK_AFFINITY_CONTEXT_KEY)) { final Affinity affinity = unmarshaller.readObject(Affinity.class); clientInvocationContext.putAttachment(AttachmentKeys.WEAK_AFFINITY, affinity); clientInvocationContext.setWeakAffinity(affinity); } else if (key.equals(EJBClientInvocationContext.PRIVATE_ATTACHMENTS_KEY)) {
invocationContext.putAttachment(AttachmentKeys.COMPRESS_RESPONSE, true); 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);
invocation.putAttachment(CANCELLATION_FLAG_ATTACHMENT_KEY, flag); interceptorContext.putPrivateData(CancellationFlag.class, flag); final ExecutorService executor = component.getAsynchronousExecutor();
String invocationIdString = Long.toString(invocationId); builder.setInvocationId(invocationIdString); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString);
public void processInvocation(final EJBReceiverInvocationContext receiverContext, final ConnectionPeerIdentity peerIdentity) { MethodInvocation invocation = invocationTracker.addInvocation(id -> new MethodInvocation(id, receiverContext)); final EJBClientInvocationContext invocationContext = receiverContext.getClientInvocationContext(); invocationContext.putAttachment(INV_KEY, invocation); final EJBLocator<?> locator = invocationContext.getLocator(); final int peerIdentityId;
public void handleInvocation(final EJBClientInvocationContext context) throws Exception { final NamingProvider namingProvider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); if (namingProvider != null) { // make sure the naming provider is available to invocations context.putAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY, namingProvider); } if (namingProvider == null || context.getDestination() != null || context.getLocator().getAffinity() != Affinity.NONE) { context.putAttachment(SKIP_MISSING_TARGET, Boolean.TRUE); context.sendRequest(); } else { if (setDestination(context, namingProvider)) try { context.sendRequest(); } catch (NoSuchEJBException | RequestSendFailedException e) { processMissingTarget(context); throw e; } else { throw Logs.INVOCATION.noMoreDestinations(); } } }
public void handleInvocation(final EJBClientInvocationContext context) throws Exception { final NamingProvider namingProvider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); if (namingProvider != null) { // make sure the naming provider is available to invocations context.putAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY, namingProvider); } if (namingProvider == null || context.getDestination() != null || context.getLocator().getAffinity() != Affinity.NONE) { context.putAttachment(SKIP_MISSING_TARGET, Boolean.TRUE); context.sendRequest(); } else { if (setDestination(context, namingProvider)) try { context.sendRequest(); } catch (NoSuchEJBException | RequestSendFailedException e) { processMissingTarget(context); throw e; } else { throw Logs.INVOCATION.noMoreDestinations(); } } }
if (version < 3 && key.equals(Affinity.WEAK_AFFINITY_CONTEXT_KEY)) { final Affinity affinity = unmarshaller.readObject(Affinity.class); clientInvocationContext.putAttachment(AttachmentKeys.WEAK_AFFINITY, affinity); clientInvocationContext.setWeakAffinity(affinity); } else if (key.equals(EJBClientInvocationContext.PRIVATE_ATTACHMENTS_KEY)) {
invocationContext.putAttachment(AttachmentKeys.COMPRESS_RESPONSE, true); 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);
if (version < 3 && key.equals(Affinity.WEAK_AFFINITY_CONTEXT_KEY)) { final Affinity affinity = unmarshaller.readObject(Affinity.class); clientInvocationContext.putAttachment(AttachmentKeys.WEAK_AFFINITY, affinity); clientInvocationContext.setWeakAffinity(affinity); } else if (key.equals(EJBClientInvocationContext.PRIVATE_ATTACHMENTS_KEY)) {
invocationContext.putAttachment(AttachmentKeys.COMPRESS_RESPONSE, true); 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);
public void processInvocation(final EJBReceiverInvocationContext receiverContext, final ConnectionPeerIdentity peerIdentity) { MethodInvocation invocation = invocationTracker.addInvocation(id -> new MethodInvocation(id, receiverContext)); final EJBClientInvocationContext invocationContext = receiverContext.getClientInvocationContext(); invocationContext.putAttachment(INV_KEY, invocation); final EJBLocator<?> locator = invocationContext.getLocator(); final int peerIdentityId;
public void processInvocation(final EJBReceiverInvocationContext receiverContext, final ConnectionPeerIdentity peerIdentity) { MethodInvocation invocation = invocationTracker.addInvocation(id -> new MethodInvocation(id, receiverContext)); final EJBClientInvocationContext invocationContext = receiverContext.getClientInvocationContext(); invocationContext.putAttachment(INV_KEY, invocation); final EJBLocator<?> locator = invocationContext.getLocator(); final int peerIdentityId;
String invocationIdString = Long.toString(invocationId); builder.setInvocationId(invocationIdString); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString);
String invocationIdString = Long.toString(invocationId); builder.setInvocationId(invocationIdString); clientInvocationContext.putAttachment(INVOCATION_ID, invocationIdString);