diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2014-10-23 00:24:46 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2014-10-23 00:24:46 +0000 |
| commit | 0119c3f06e3d970bfce699c6557fbeb54ae465a1 (patch) | |
| tree | 9639a5c5331b31358aa5c9e6f731474b11801e3c /qpid/java/client | |
| parent | 8a77fc4fc589ad8ba4939134f90a855637269b5c (diff) | |
| download | qpid-python-0119c3f06e3d970bfce699c6557fbeb54ae465a1.tar.gz | |
QPID-6179 - [Java Client] Connection establishment can send invalid frame sequence when retrying
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1633728 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java index d9298abd0f..70d91ad817 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java @@ -64,6 +64,7 @@ import org.apache.qpid.AMQUnresolvedAddressException; import org.apache.qpid.client.failover.FailoverException; import org.apache.qpid.client.failover.FailoverProtectedOperation; import org.apache.qpid.client.protocol.AMQProtocolHandler; +import org.apache.qpid.client.state.AMQStateManager; import org.apache.qpid.configuration.ClientProperties; import org.apache.qpid.exchange.ExchangeDefaults; import org.apache.qpid.framing.AMQShortString; @@ -444,6 +445,8 @@ public class AMQConnection extends Closeable implements Connection, QueueConnect { retryAllowed = _failoverPolicy.failoverAllowed(); brokerDetails = _failoverPolicy.getNextBrokerDetails(); + _protocolHandler.setStateManager(new AMQStateManager(_protocolHandler.getProtocolSession())); + } } verifyClientID(); |
