java - FailoverClientConnectionFactory is not threadsafe? -
i had code working tcpnioclientconnectionfactory , has been working fine. until when made change tcp client perform failover in case of down time of server using failoverclientconnectionfactory , starts return me response different request, single abstractclientconnectionfactory provided failover factory. my code using @messaginggateway , method wrapped using completablefuture without completablefuture still return wrong response (most of time). the log file showing error o.s.i.i.t.tcpoutboundgateway - cannot correlate response - no pending reply i can reproduce issue using test. please help.