I have defined an int-http:inbound-gateway which has a request channel and a reply channel. The request channel connects to a service activator which validates the message and returns a message response via its output channel. How does one forward the validated message to another endpoint for further message processing? Its like I need 2 output channels, one for the response and one for the message.
<int-http:inbound-gateway
request-channel="requestChannel"
reply-channel="responseChannel"
supported-methods="POST"
path="/message/hl7/{source}">
<int-http:request-mapping
consumes="application/json" produces="application/json"/>
<int-http:header name="source" expression="#pathVariables.source"/>
</int-http:inbound-gateway>
<int:service-activator ref="HL7MessageEndpoint"
method="POST"
input-channel="requestChannel"
output-channel="responseChannel"/>
<!-- need to send original message to jms if service activator validates successfully -->