// -- COMPOSITE REQUEST/RESPONSE CHAIN --
// Compose request and response chains. We do this so that if the request
// chain returns early the response chain is still invoked.
DefaultMessageProcessorChainBuilder compositeChainBuilder = new EndpointMessageProcessorChainBuilder(endpoint, flowConstruct);
compositeChainBuilder.setName("InboundEndpoint '"+ endpoint.getEndpointURI().getUri() +"' composite request/response chain");
compositeChainBuilder.chain(requestChainBuilder.build(), responseChainBuilder.build());
return compositeChainBuilder.build();
}
}
public MessageProcessor createOutboundMessageProcessorChain(OutboundEndpoint endpoint, MessageProcessor target) throws MuleException