diff --git a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java index 772fa87ced..2e3ca816f6 100644 --- a/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java +++ b/spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/FailoverClientConnectionFactory.java @@ -160,8 +160,8 @@ public class FailoverClientConnectionFactory extends AbstractClientConnectionFac failoverTcpConnection.registerListener(getListener()); } failoverTcpConnection.incrementEpoch(); - this.creationTime = System.currentTimeMillis(); if (shared) { + this.creationTime = System.currentTimeMillis(); /* * We may have simply wrapped the same connection in a new wrapper; don't close. */ diff --git a/src/reference/asciidoc/ip.adoc b/src/reference/asciidoc/ip.adoc index d80721ca55..7a902ec8bc 100644 --- a/src/reference/asciidoc/ip.adoc +++ b/src/reference/asciidoc/ip.adoc @@ -536,7 +536,7 @@ The following example shows how to configure a failover client connection factor NOTE: When using the failover connection factory, the `singleUse` property must be consistent between the factory itself and the list of factories it is configured to use. -The connnection factory has two properties when used with a shared connection (`singleUse=false`): +The connection factory has two properties when used with a shared connection (`singleUse=false`): * `refreshSharedInterval` * `closeOnRefresh`