private void writeExceptionResponse(final Exception e, final int messageId, final int id) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.FAILURE); mos.writeByte(Protocol.P_EXCEPTION); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(e); } } }
private void writeSuccessResponse(final int messageId, final int id, final Object result) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.SUCCESS); if (result instanceof Context) { mos.writeByte(Protocol.P_CONTEXT); } else { mos.writeByte(Protocol.P_OBJECT); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(result); } } } }
mos.writeByte(Protocol.P_LIST); mos.writeInt(resultList.size()); try (Marshaller marshaller = createMarshaller(mos, configuration)) { for (NameClassPair nameClassPair : resultList) { marshaller.writeObject(nameClassPair);
try (Marshaller marshaller = createMarshaller(mos, configuration)) { for (Binding binding : resultList) { if (binding.getObject() instanceof Context) {
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name)); messageOutputStream.writeInt(authId); messageOutputStream.writeUTF(NamingUtils.toCompositeName(name).toString()); try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeObject(obj);
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(compositeName);
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(oldName));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
private void writeExceptionResponse(final Exception e, final int messageId, final int id) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.FAILURE); mos.writeByte(Protocol.P_EXCEPTION); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(e); } } }
private void writeExceptionResponse(final Exception e, final int messageId, final int id) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.FAILURE); mos.writeByte(Protocol.P_EXCEPTION); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(e); } } }
private void writeSuccessResponse(final int messageId, final int id, final Object result) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.SUCCESS); if (result instanceof Context) { mos.writeByte(Protocol.P_CONTEXT); } else { mos.writeByte(Protocol.P_OBJECT); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(result); } } } }
private void writeSuccessResponse(final int messageId, final int id, final Object result) throws IOException { try (MessageOutputStream mos = messageTracker.openMessageUninterruptibly()) { mos.writeByte(messageId); writeId(mos, version, id); mos.writeByte(Protocol.SUCCESS); if (result instanceof Context) { mos.writeByte(Protocol.P_CONTEXT); } else { mos.writeByte(Protocol.P_OBJECT); try (Marshaller marshaller = createMarshaller(mos, configuration)) { marshaller.writeObject(result); } } } }
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(compositeName);
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(name));
writeId(messageOutputStream, version, invocation.getIndex()); if (version == 1) { try (Marshaller marshaller = createMarshaller(messageOutputStream, configuration)) { marshaller.writeByte(Protocol.P_NAME); marshaller.writeObject(NamingUtils.toDecomposedCompositeName(oldName));