public boolean isOpen() { return delegate.isOpen(); }
protected boolean isConnected(final URI uri) { final IoFuture<ConnectionPeerIdentity> future = Endpoint.getCurrent().getConnectedIdentityIfExists(uri, "ejb", "jboss", AuthenticationContext.captureCurrent()); try { return future != null && future.getStatus() == IoFuture.Status.DONE && future.get().getConnection().isOpen(); } catch (IOException e) { // impossible throw Assert.unreachableCode(); } }
public boolean isOpen() { return delegate.isOpen(); }
protected boolean isConnected(final URI uri) { final IoFuture<ConnectionPeerIdentity> future = Endpoint.getCurrent().getConnectedIdentityIfExists(uri, "ejb", "jboss", AuthenticationContext.captureCurrent()); try { return future != null && future.getStatus() == IoFuture.Status.DONE && future.get().getConnection().isOpen(); } catch (IOException e) { // impossible throw Assert.unreachableCode(); } }
protected boolean isConnected(final URI uri) { final IoFuture<ConnectionPeerIdentity> future = Endpoint.getCurrent().getConnectedIdentityIfExists(uri, "ejb", "jboss", AuthenticationContext.captureCurrent()); try { return future != null && future.getStatus() == IoFuture.Status.DONE && future.get().getConnection().isOpen(); } catch (IOException e) { // impossible throw Assert.unreachableCode(); } }