I have a Tcp FailOverConnectionFactory supplied with two AbstarctClientConnectionFactory. Each AbstarctClientConnectionFactory will connect to different servers.
And Using TcpOutboundGateway for message exchange. Now i want to switch between the AbstarctClientConnectionFactory based on a Custom Health Check supported by the server.
For Example: If the Client sends message 'TEST HEALTH ', then server replies back as 'GOOD' or 'FAIL'. If the reply received is FAIL, then other AbstarctClientConnectionFactory has to be used for upcoming connections.
Please suggest if it is possible through Spring Integration Ip framework.