Source:
<code>private void submitRequest(NHttpClientConnection conn, HttpRoute route, MessageContext msgContext) throws AxisFault { if (log.isDebugEnabled()) { log.debug("Submitting new request MessageID:" + msgContext.getMessageID() +" to the connection: " + conn); } if (SynapseDebugInfoHolder.getInstance().isDebuggerEnabled()) { conn.getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, msgContext.getProperty(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY)); conn.getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_MEDIATOR_ID_PROPERTY, msgContext.getProperty(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_MEDIATOR_ID_PROPERTY)); } TargetRequest request = TargetRequestFactory.create(msgContext, route, targetConfiguration); TargetContext.setRequest(conn, request); if (PassThroughConstants.CORRELATION_ENABLE_STATE.equals(targetConfiguration.getCorrelationStatus())) { <START> long startTime = (long) msgContext.getProperty(PassThroughConstants.CORRELATION_REQUEST_ARRIVED); <END> conn.getContext().setAttribute(PassThroughConstants.CORRELATION_ID, msgContext.getProperty(PassThroughConstants.CORRELATION_ID)); conn.getContext().setAttribute(PassThroughConstants.CORRELATION_REQUEST_ARRIVED, startTime); } Pipe pipe = (Pipe) msgContext.getProperty(PassThroughConstants.PASS_THROUGH_PIPE); if (pipe != null) { pipe.attachConsumer(conn); request.connect(pipe); if (Boolean.TRUE.equals(msgContext.getProperty(PassThroughConstants.MESSAGE_BUILDER_INVOKED))) { synchronized (msgContext) { OutputStream out = pipe.getOutputStream(); msgContext.setProperty(PassThroughConstants.BUILDER_OUTPUT_STREAM, out); msgContext.setProperty(PassThroughConstants.WAIT_BUILDER_IN_STREAM_COMPLETE, Boolean.TRUE); msgContext.notifyAll(); } return; } } conn.requestOutput(); }</code><technical_language>need this time in DeliveryAgent</technical_language>

Target:
private void submitRequest(NHttpClientConnection conn, HttpRoute route, MessageContext msgContext) throws AxisFault { if (log.isDebugEnabled()) { log.debug("Submitting new request MessageID:" + msgContext.getMessageID() +" to the connection: " + conn); } if (SynapseDebugInfoHolder.getInstance().isDebuggerEnabled()) { conn.getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, msgContext.getProperty(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY)); conn.getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_MEDIATOR_ID_PROPERTY, msgContext.getProperty(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_MEDIATOR_ID_PROPERTY)); } TargetRequest request = TargetRequestFactory.create(msgContext, route, targetConfiguration); TargetContext.setRequest(conn, request); if (targetConfiguration.isCorrelationLoggingEnabled()) { conn.getContext().setAttribute(PassThroughConstants.CORRELATION_ID, msgContext.getProperty(PassThroughConstants.CORRELATION_ID)); } Pipe pipe = (Pipe) msgContext.getProperty(PassThroughConstants.PASS_THROUGH_PIPE); if (pipe != null) { pipe.attachConsumer(conn); request.connect(pipe); if (Boolean.TRUE.equals(msgContext.getProperty(PassThroughConstants.MESSAGE_BUILDER_INVOKED))) { synchronized (msgContext) { OutputStream out = pipe.getOutputStream(); msgContext.setProperty(PassThroughConstants.BUILDER_OUTPUT_STREAM, out); msgContext.setProperty(PassThroughConstants.WAIT_BUILDER_IN_STREAM_COMPLETE, Boolean.TRUE); msgContext.notifyAll(); } return; } } conn.requestOutput(); }