spring-projects / spring-integration-samples

You are looking for examples, code snippets, sample applications for Spring Integration? This is the place.

Home Page:http://www.springsource.org/spring-integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two permanents connections with RoundRobin and Failover

rhigonet opened this issue · comments

Hey,

It's possible (using the existing components of Spring-Integration) to have two permanents connections to two differents TCP Servers, that allow us to make a round-robin between the connections, and on the case of fails, try with the other connection?

We are using the FailoverClientConnectionFactory, with two TcpNioClientConnectionFactory (each one to connect to a different server).
But that means that our application it's working at 50%. Because it's using a shared connection, and we could make a round-robin to use the two TCP servers.

I'm struggling with this scenario
We are considered to make our own CustomRoundRobinFailoverConnectionFactory or use the IntegrationFlow library, but maybe it's a better way to do it.
Thanks for advance! (I don't know where it's the correct channel to put this message)

Sounds more like StackOverflow question...
We will try our best to help you there.

Thanks

Sorry for posting the question here
Thanks!