gpt4 book ai didi

java - Spring 集成: How to set up void outbound gateway methods

转载 作者:行者123 更新时间:2023-12-01 12:54:41 36 4
gpt4 key购买 nike

我在为无效网关消息设置 channel 时遇到问题:
目前,我遇到了异常
线程“main”中的异常org.springframework.integration.support.channel.ChannelResolutionException:没有可用的输出 channel 或replyChannel header


我的出站网关设置如下:
channel ->变压器-> channel ->出站网关我没有为出站网关设置回复 channel ,只是一个请求 channel

问题:当您不等待响应(错误消息除外)时,设置出站系统请求的正确方法是什么?

最佳答案

防止任何响应的最简单方法是使用 <outbound-channel-adapter> - 单向服务调用者。但我猜你用 <int-ws:outbound-gateway>并且没有<outbound-channel-adapter>关于此事。

在这种情况下,您只需 emulate同样使用reply-channel="nullChannel" .

应该够了。

关于java - Spring 集成: How to set up void outbound gateway methods,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23988717/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com