private void marshalEJBRequest(ByteOutput byteOutput, EJBClientInvocationContext clientInvocationContext, HttpTargetContext targetContext) throws IOException, RollbackException, SystemException { MarshallingConfiguration config = createMarshallingConfig(targetContext.getUri()); Marshaller marshaller = targetContext.createMarshaller(config); marshaller.start(byteOutput); writeTransaction(clientInvocationContext.getTransaction(), marshaller, targetContext.getUri()); Object[] methodParams = clientInvocationContext.getParameters(); if (methodParams != null && methodParams.length > 0) { for (final Object methodParam : methodParams) { marshaller.writeObject(methodParam); } } // write out the context data final Map<String, Object> contextData = clientInvocationContext.getContextData(); // no private or public data to write out if (contextData == null) { marshaller.writeByte(0); } else { final int totalAttachments = contextData.size(); PackedInteger.writePackedInteger(marshaller, totalAttachments); // write out public (application specific) context data for (Map.Entry<String, Object> invocationContextData : contextData.entrySet()) { marshaller.writeObject(invocationContextData.getKey()); marshaller.writeObject(invocationContextData.getValue()); } } // finish marshalling marshaller.finish(); }
if (invocation.getParameters() == null) { parameters = EMPTY_OBJECT_ARRAY; } else { parameters = new Object[invocation.getParameters().length]; for (int i = 0; i < parameters.length; ++i) { parameters[i] = clone(method.getParameterTypes()[i], parameterCloner, invocation.getParameters()[i], allowPassByReference);
final Object[] parameters = invocationContext.getParameters();
private void marshalEJBRequest(ByteOutput byteOutput, EJBClientInvocationContext clientInvocationContext, HttpTargetContext targetContext) throws IOException, RollbackException, SystemException { MarshallingConfiguration config = createMarshallingConfig(targetContext.getUri()); Marshaller marshaller = targetContext.createMarshaller(config); marshaller.start(byteOutput); writeTransaction(clientInvocationContext.getTransaction(), marshaller, targetContext.getUri()); Object[] methodParams = clientInvocationContext.getParameters(); if (methodParams != null && methodParams.length > 0) { for (final Object methodParam : methodParams) { marshaller.writeObject(methodParam); } } // write out the context data final Map<String, Object> contextData = clientInvocationContext.getContextData(); // no private or public data to write out if (contextData == null) { marshaller.writeByte(0); } else { final int totalAttachments = contextData.size(); PackedInteger.writePackedInteger(marshaller, totalAttachments); // write out public (application specific) context data for (Map.Entry<String, Object> invocationContextData : contextData.entrySet()) { marshaller.writeObject(invocationContextData.getKey()); marshaller.writeObject(invocationContextData.getValue()); } } // finish marshalling marshaller.finish(); }
private void marshalEJBRequest(ByteOutput byteOutput, EJBClientInvocationContext clientInvocationContext, HttpTargetContext targetContext) throws IOException, RollbackException, SystemException { MarshallingConfiguration config = createMarshallingConfig(targetContext.getUri()); Marshaller marshaller = targetContext.createMarshaller(config); marshaller.start(byteOutput); writeTransaction(clientInvocationContext.getTransaction(), marshaller, targetContext.getUri()); Object[] methodParams = clientInvocationContext.getParameters(); if (methodParams != null && methodParams.length > 0) { for (final Object methodParam : methodParams) { marshaller.writeObject(methodParam); } } // write out the context data final Map<String, Object> contextData = clientInvocationContext.getContextData(); // no private or public data to write out if (contextData == null) { marshaller.writeByte(0); } else { final int totalAttachments = contextData.size(); PackedInteger.writePackedInteger(marshaller, totalAttachments); // write out public (application specific) context data for (Map.Entry<String, Object> invocationContextData : contextData.entrySet()) { marshaller.writeObject(invocationContextData.getKey()); marshaller.writeObject(invocationContextData.getValue()); } } // finish marshalling marshaller.finish(); }
if (invocation.getParameters() == null) { parameters = EMPTY_OBJECT_ARRAY; } else { parameters = new Object[invocation.getParameters().length]; for (int i = 0; i < parameters.length; ++i) { parameters[i] = clone(method.getParameterTypes()[i], parameterCloner, invocation.getParameters()[i], allowPassByReference);
final Object[] parameters = invocationContext.getParameters();
final Object[] parameters = invocationContext.getParameters();