我正在使用以下SI流程:
<integration:gateway id="notificationGateway"
default-request-channel="start"
default-reply-channel="end"
service-interface="com.supplier.NotificationGateway"/>
<integration:channel id="start"/>
<integration:service-activator id="securedFileTransfer"
input-channel="start"
ref="Submitter"
method="submit"
output-channel="end"/>
<integration:publish-subscribe-channel id="end"/>
收到以下错误:
no output-channel or replyChannel header available?borg.springframework.integration.support.channel.ChannelResolutionException: no output-channel or replyChannel header available
有什么想法吗?
答案 0 :(得分:4)
谢谢这篇文章给了我很多帮助。 Bellow是我用于从上一个频道消息创建Message标头的代码,以及带有效负载myPayload的新创建的消息
createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());