0
查看文檔:http://docs.spring.io/spring-integration/reference/html/ip.html#tcp-adapters我知道適配器僅用於單向通信。但是,只給出這些類的XML配置示例。Java相當於tcp-inbound-channel-adapter和tcp-outbound-channel-adapter bean配置
我想將它們配置爲Java bean,但我找不到有關如何執行此操作的任何文檔。請給我一個例子,如何我將配置在Java中的配置如下:
<int-ip:tcp-outbound-channel-adapter
id="outboundClient" channel="rsp_transformed" connection-factory="client" />
<int-ip:tcp-inbound-channel-adapter
id="inboundClient" channel="req" connection-factory="client" client-mode="true" />