4

我正在使用以下 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

有任何想法吗?

4

1 回答 1

5

谢谢这篇文章对我帮助很大。波纹管是我用来创建消息头的代码,从以前的频道消息到新创建的带有负载 myPayload 的消息

createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());
于 2014-10-28T07:38:12.707 回答