弹簧集成:"no output-channel or replyChannel header available"



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

有什么想法吗?

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

createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());

最新更新