0

While integrating to a TCP endpoint, we created an application using Spring integration TCP where we've a pooled connection using the following beans:

<!-- Pooled Connection factory -->
<int-ip:tcp-connection-factory id="client" type="client" host="${gateway.url}" port="${gateway.port}"
    single-use="true" so-timeout="${gateway.socket.timeout}" serializer="appSerializerDeserializer" deserializer="appSerializerDeserializer" />
<bean id="cachedClient" class="org.springframework.integration.ip.tcp.connection.CachingClientConnectionFactory">
    <constructor-arg ref="client" />
    <constructor-arg value="${gateway.pool.size}" />
</bean>

Does anyone have a suggestion on how to implement a socket re-connection in case a socket loses the connection?

1 Answer 1

1

It will automatically reconnect the next time you send something.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you Gary! I saw this behavior but I wasn't sure if that was the preferable way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.