【发布时间】:2015-04-28 04:37:07
【问题描述】:
我定义了一个 int-http:inbound-gateway,它有一个请求通道和一个回复通道。请求通道连接到服务激活器,该服务激活器验证消息并通过其输出通道返回消息响应。如何将经过验证的消息转发到另一个端点以进行进一步的消息处理?就像我需要 2 个输出通道,一个用于响应,一个用于消息。
<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 -->
【问题讨论】:
-
您可以发布您的工作/代码突出显示您尝试过的内容吗?