EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
RemoteEJBReceiver(final RemoteTransportProvider remoteTransportProvider, final EJBReceiverContext receiverContext, final RemotingEJBDiscoveryProvider discoveredNodeRegistry) { this.remoteTransportProvider = remoteTransportProvider; this.receiverContext = receiverContext; this.discoveredNodeRegistry = discoveredNodeRegistry; serviceHandle = new ClientServiceHandle<>("jboss.ejb", channel -> EJBClientChannel.construct(channel, this.discoveredNodeRegistry, retryExecutorWrapper)); }
static TransactionClientChannel forConnection(final Connection connection) throws IOException { return CLIENT_SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY).get(); }
RemoteEJBReceiver(final RemoteTransportProvider remoteTransportProvider, final EJBReceiverContext receiverContext, final RemotingEJBDiscoveryProvider discoveredNodeRegistry) { this.remoteTransportProvider = remoteTransportProvider; this.receiverContext = receiverContext; this.discoveredNodeRegistry = discoveredNodeRegistry; serviceHandle = new ClientServiceHandle<>("jboss.ejb", channel -> EJBClientChannel.construct(channel, this.discoveredNodeRegistry, retryExecutorWrapper)); }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }
RemoteEJBReceiver(final RemoteTransportProvider remoteTransportProvider, final EJBReceiverContext receiverContext, final RemotingEJBDiscoveryProvider discoveredNodeRegistry) { this.remoteTransportProvider = remoteTransportProvider; this.receiverContext = receiverContext; this.discoveredNodeRegistry = discoveredNodeRegistry; serviceHandle = new ClientServiceHandle<>("jboss.ejb", channel -> EJBClientChannel.construct(channel, this.discoveredNodeRegistry, retryExecutorWrapper)); }
EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
static TransactionClientChannel forConnection(final Connection connection) throws IOException { return CLIENT_SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY).get(); }
static TransactionClientChannel forConnection(final Connection connection) throws IOException { return CLIENT_SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY).get(); }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }