I'm using spring-integration to connect a client to a server socket using the following components:
DirectChannel
TcpConnectionFactoryFactoryBean
TcpOutboundGateway
@MessagingGateway
Problem: the TcpConnectionFactoryFactoryBean is tied to a specific socket port. I'd like to connect the client to multiple server sockets.
How could I achieve this? Is that possible at all?