繁体   English   中英

Spring集成:如何设置无效的出站网关方法

[英]Spring Integration: How to set up void outbound gateway methods

我在为无效网关消息设置频道时遇到问题:
现在,我要例外
Exception in thread "main" org.springframework.integration.support.channel.ChannelResolutionException: no output-channel or replyChannel header available


我有这样的出站网关设置:
channel-> transformer-> channel-> outbound-gateway我没有为出站网关设置回复通道,只是一个请求通道

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

防止任何响应的最简单方法是使用<outbound-channel-adapter> - 单向服务调用程序。 但是我想您使用<int-ws:outbound-gateway>并且在此问题上没有<outbound-channel-adapter>

在这种情况下,您可以使用reply-channel="nullChannel"emulate相同的内容。

应该足够了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM