diff options
| author | Arnaud Simon <arnaudsimon@apache.org> | 2008-03-18 12:20:49 +0000 |
|---|---|---|
| committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-03-18 12:20:49 +0000 |
| commit | 762565a83a480183fe84a832631e01931ed01994 (patch) | |
| tree | 5775f0c874e0b36e2db3c6208d1ce122f78d9291 /java/client | |
| parent | 6e1d13a2b51fcbd7f865d66d480240e041c9665e (diff) | |
| download | qpid-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/client')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpidity/nclient/Client.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpidity/nclient/Client.java b/java/client/src/main/java/org/apache/qpidity/nclient/Client.java index ad47e14fde..3944e2c3f3 100644 --- a/java/client/src/main/java/org/apache/qpidity/nclient/Client.java +++ b/java/client/src/main/java/org/apache/qpidity/nclient/Client.java @@ -19,6 +19,7 @@ import org.apache.qpidity.transport.ConnectionClose; import org.apache.qpidity.transport.ConnectionCloseOk; import org.apache.qpidity.transport.ConnectionDelegate; import org.apache.qpidity.transport.ConnectionEvent; +import org.apache.qpidity.transport.TransportConstants; import org.apache.qpidity.transport.ProtocolHeader; import org.apache.qpidity.transport.SessionDelegate; import org.apache.qpidity.transport.network.mina.MinaHandler; @@ -141,7 +142,7 @@ public class Client implements org.apache.qpidity.nclient.Connection } // XXX: hardcoded version numbers - _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))); try { |
