private ResponseMessageInputStream removeInvocationResult() { MessageInputStream mis; int id; try { synchronized (this) { for (; ; ) { id = this.getIndex(); if (inputStream != null) { mis = inputStream; inputStream = null; break; } if (ex != null) { throw new EJBException(ex); } if (id == -1) { throw new EJBException("Connection closed"); } wait(); } } } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new EJBException("Session creation interrupted"); } return new ResponseMessageInputStream(mis, id); } }
int size = PackedInteger.readPackedInteger(response); byte[] bytes = new byte[size]; response.readFully(bytes); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { final int updateBits = response.readUnsignedByte(); if (allAreSet(updateBits, Protocol.UPDATE_BIT_WEAK_AFFINITY)) { final byte[] b = new byte[PackedInteger.readPackedInteger(response)]; response.readFully(b); clientInvocationContext.setWeakAffinity(new NodeAffinity(new String(b, StandardCharsets.UTF_8))); response.readFully(b); String clusterName = new String(b, StandardCharsets.UTF_8); affinity = new ClusterAffinity(clusterName); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { while (response.read() != -1) { response.skip(Long.MAX_VALUE); final String message = response.readUTF(); throw new NoSuchEJBException(message + " @ " + getChannel().getConnection().getPeerURI()); final String message = response.readUTF();
int size = PackedInteger.readPackedInteger(response); byte[] bytes = new byte[size]; response.readFully(bytes); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { final int updateBits = response.readUnsignedByte(); if (allAreSet(updateBits, Protocol.UPDATE_BIT_WEAK_AFFINITY)) { final byte[] b = new byte[PackedInteger.readPackedInteger(response)]; response.readFully(b); clientInvocationContext.setWeakAffinity(new NodeAffinity(new String(b, StandardCharsets.UTF_8))); response.readFully(b); String clusterName = new String(b, StandardCharsets.UTF_8); affinity = new ClusterAffinity(clusterName); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { while (response.read() != -1) { response.skip(Long.MAX_VALUE); final String message = response.readUTF(); throw new NoSuchEJBException(message + " @ " + getChannel().getConnection().getPeerURI()); final String message = response.readUTF();
public Object getResult() throws Exception { Exception e; try (final ResponseMessageInputStream response = new ResponseMessageInputStream(inputStream, id)) { if (version >= 3) { final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) {
public Object getResult() throws Exception { Exception e; try (final ResponseMessageInputStream response = new ResponseMessageInputStream(inputStream, id)) { if (version >= 3) { final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) {
response = (ResponseMessageInputStream) inputStream; } else { response = new ResponseMessageInputStream(inputStream, id);
response = (ResponseMessageInputStream) inputStream; } else { response = new ResponseMessageInputStream(inputStream, id);
private ResponseMessageInputStream removeInvocationResult() { MessageInputStream mis; int id; try { synchronized (this) { for (; ; ) { id = this.getIndex(); if (inputStream != null) { mis = inputStream; inputStream = null; break; } if (ex != null) { throw new EJBException(ex); } if (id == -1) { throw new EJBException("Connection closed"); } wait(); } } } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new EJBException("Session creation interrupted"); } return new ResponseMessageInputStream(mis, id); } }
private ResponseMessageInputStream removeInvocationResult() { MessageInputStream mis; int id; try { synchronized (this) { for (; ; ) { id = this.getIndex(); if (inputStream != null) { mis = inputStream; inputStream = null; break; } if (ex != null) { throw new EJBException(ex); } if (id == -1) { throw new EJBException("Connection closed"); } wait(); } } } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new EJBException("Session creation interrupted"); } return new ResponseMessageInputStream(mis, id); } }
int size = PackedInteger.readPackedInteger(response); byte[] bytes = new byte[size]; response.readFully(bytes); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { final int updateBits = response.readUnsignedByte(); if (allAreSet(updateBits, Protocol.UPDATE_BIT_WEAK_AFFINITY)) { final byte[] b = new byte[PackedInteger.readPackedInteger(response)]; response.readFully(b); clientInvocationContext.setWeakAffinity(new NodeAffinity(new String(b, StandardCharsets.UTF_8))); response.readFully(b); String clusterName = new String(b, StandardCharsets.UTF_8); affinity = new ClusterAffinity(clusterName); final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) { while (response.read() != -1) { response.skip(Long.MAX_VALUE); final String message = response.readUTF(); throw new NoSuchEJBException(message + " @ " + getChannel().getConnection().getPeerURI()); final String message = response.readUTF();
public Object getResult() throws Exception { Exception e; try (final ResponseMessageInputStream response = new ResponseMessageInputStream(inputStream, id)) { if (version >= 3) { final int cmd = response.readUnsignedByte(); final XAOutflowHandle outflowHandle = getOutflowHandle(); if (outflowHandle != null) {
response = (ResponseMessageInputStream) inputStream; } else { response = new ResponseMessageInputStream(inputStream, id);