I created a small Tcp communication application linked below.
It is based on TCP Sample in spring-integration-samples. The message generated by the Gateway is sent over TCP by the Outbound Gateway to the Inbound Channel Adapter. In turn the Outbound Channel Adapter echo response comes back over TCP. This application has two TcpNetClientConnectionFactories, the one is set a interceptor factory chain and another is not.
Running this application, the log like below is outputted.
TcpConnectionOpenEvent with TcpConnection wrapped Interceptor↓ 16:50:01.411 [main] DEBUG com.neriudon.example.tcp.listener.TcpConnectionEventsListener - ★OPEN★ TcpConnectionOpenEvent [source=SimpleInterceptor:null], [factory=unknown, connectionId=localhost:50001:64609:627f6eb5-401f-44e2-88a9-4f966ee66092] **OPENED** TcpConnectionOpenEvent with raw TcpConnection↓ 16:50:01.426 [main] DEBUG com.neriudon.example.tcp.listener.TcpConnectionEventsListener - ★OPEN★ TcpConnectionOpenEvent [source=TcpNetConnection:localhost:50002:64610:ee9b0bcd-aa9a-4fdb-9194-2e761caabed6], [factory=client2, connectionId=localhost:50002:64610:ee9b0bcd-aa9a-4fdb-9194-2e761caabed6] **OPENED**
TcpConnection wrapped interceptor publish TcpConnectionOpenEvent whose connection factory property is unknown. Is it why?
(The version of Spring Integration is 4.3.12.)