java - FailoverClientConnectionFactory not working for tcp-connection-factory -




i using tcp-connection-factory sending data client server on tcp. have 2 servers, data going 1st server , never goes 2nd server if 1st server down.

if 1st server down, data should sent 2nd server. not working. here spring.xml file

<ip:tcp-connection-factory id="client1" type="client"      host="${host1}" port="${port}"     serializer="serializer"/>  <ip:tcp-connection-factory id="client2" type="client"      host="${host2}" port="${port}"     serializer="serializer"/>  <bean id="failcf" class="org.springframework.integration.ip.tcp.connection.failoverclientconnectionfactory">     <constructor-arg>         <list>             <ref bean="client1"/>             <ref bean="client2"/>         </list>     </constructor-arg> </bean> 

i haven't set single-use , so-timeout attribute. think single-use false default , so-timeout 0 (infinity) default. if single-use false, client use same connection socket , if so-timeout 0, tcp connection not end connection between client , server.

is reason if client1 server down, data not going client2 server?

can please suggest right spring configuration?

what happen if set single-use = true , so-timeout = 60 seconds?

can use single-use=false , so-timeout=60000?.

or if so-timeout attribute needs set 10/20/30..., single-use attribute must true?

note: using spring-integration-core 4.0.4.release.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -