How to implement a keep alive connection on a TCP connection using spring integration?
问题 I've a TCP client which was built using spring integration TCP and the server supports a keep alive message (ping/pong style). The connections were configured using a CachingClientConnectionFactory and I'd like to take advantage on this server feature. Here's my bean configuration: private static final int SERIALIZER_HEADER_SIZE = 2; /** * Serializer used by connection factory to send and receive messages */ @Bean public ByteArrayLengthHeaderSerializer byteArrayLengthHeaderSerializer() {