Spring Integration - int-http:inbound-gateway -


i have defined int-http:inbound-gateway has request channel , reply channel. request channel connects service activator validates message , returns message response via output channel. how 1 forward validated message endpoint further message processing? need 2 output channels, 1 response , 1 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 send original message jms if service activator validates -->   

change reply channel <publish-subscribe-channel/>. way, reply go gateway , can subscribe component. need add task executor channel downstream flow doesn't run on web container thread.