当我尝试定义TcpOutboundGateway
bean 时,我发现该类没有requestChannel
和replyChannelName
setter。如何在我的 Java 类配置中正确定义该 bean?
哪个 Java 类配置与下面介绍的 XML 配置相同?
<int-ip:tcp-outbound-gateway id="outGateway"
request-channel="input"
reply-channel="clientBytes2StringChannel"
connection-factory="client"
request-timeout="10000"
reply-timeout="10000"/>