summaryrefslogtreecommitdiff
path: root/java/common/src
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2008-03-18 12:20:49 +0000
committerArnaud Simon <arnaudsimon@apache.org>2008-03-18 12:20:49 +0000
commit762565a83a480183fe84a832631e01931ed01994 (patch)
tree5775f0c874e0b36e2db3c6208d1ce122f78d9291 /java/common/src
parent6e1d13a2b51fcbd7f865d66d480240e041c9665e (diff)
downloadqpid-python-762565a83a480183fe84a832631e01931ed01994.tar.gz
Revision 636791 says: "Added constant to represent the AMQP versions, as previously it was hard-coded." Those constants must be used when the connection is established.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@638344 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r--java/common/src/main/java/org/apache/qpidity/ToyClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/common/src/main/java/org/apache/qpidity/ToyClient.java b/java/common/src/main/java/org/apache/qpidity/ToyClient.java
index 977704fc0c..e455be0873 100644
--- a/java/common/src/main/java/org/apache/qpidity/ToyClient.java
+++ b/java/common/src/main/java/org/apache/qpidity/ToyClient.java
@@ -75,7 +75,7 @@ class ToyClient extends SessionDelegate
}
public void closed() {}
});
- conn.send(new ConnectionEvent(0, new ProtocolHeader(1, 0, 10)));
+ conn.send(new ConnectionEvent(0, new ProtocolHeader(1, TransportConstants.CONNECTION_VERSION_MAJOR, TransportConstants.CONNECTION_VERSION_MINOR)));
Channel ch = conn.getChannel(0);
Session ssn = new Session();