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(); } } }
final Boolean hintsDisabled = invocationContext.getProxyAttachment(AttachmentKeys.HINTS_DISABLED); if (hintsDisabled != null && hintsDisabled) { if (Logs.REMOTING.isTraceEnabled()) {
break; final NamingProvider provider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); receiverInvocationContext.resultReady(new MethodCallResultProducer(provider, inputStream, id)); break;
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(); } } }
final Boolean hintsDisabled = invocationContext.getProxyAttachment(AttachmentKeys.HINTS_DISABLED); if (hintsDisabled != null && hintsDisabled) { if (Logs.REMOTING.isTraceEnabled()) {
final Boolean hintsDisabled = invocationContext.getProxyAttachment(AttachmentKeys.HINTS_DISABLED); if (hintsDisabled != null && hintsDisabled) { if (Logs.REMOTING.isTraceEnabled()) {
break; final NamingProvider provider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); receiverInvocationContext.resultReady(new MethodCallResultProducer(provider, inputStream, id)); break;
break; final NamingProvider provider = context.getProxyAttachment(Keys.NAMING_PROVIDER_ATTACHMENT_KEY); receiverInvocationContext.resultReady(new MethodCallResultProducer(provider, inputStream, id)); break;