diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2007-01-18 14:43:10 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2007-01-18 14:43:10 +0000 |
| commit | 1fee539de064759dee7272156e5ee21434fa3949 (patch) | |
| tree | 0504e99cfbb0273b2a8ebb2b3dcef3ec24e9625f /java | |
| parent | cfe7469f1c49728d391587f2d4be7ce68085e01d (diff) | |
| download | qpid-python-1fee539de064759dee7272156e5ee21434fa3949.tar.gz | |
Client: added request and response managers for channel 0
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497450 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java b/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java index 609da9a05e..e59b528e8b 100644 --- a/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java +++ b/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolSession.java @@ -114,6 +114,10 @@ public class AMQProtocolSession implements AMQProtocolWriter, ProtocolVersionLis _protocolHandler = null; _minaProtocolSession = null; _stateManager = new AMQStateManager(this); + + // Add channel 0 request and response managers, since they will not be added through the usual mechanism + _channelId2RequestMgrMap.put(0, new RequestManager(0, this)); + _channelId2ResponseMgrMap.put(0, new ResponseManager(0, _stateManager, this)); } public AMQProtocolSession(AMQProtocolHandler protocolHandler, IoSession protocolSession, AMQConnection connection) @@ -123,6 +127,10 @@ public class AMQProtocolSession implements AMQProtocolWriter, ProtocolVersionLis // properties of the connection are made available to the event handlers _minaProtocolSession.setAttribute(AMQ_CONNECTION, connection); _stateManager = new AMQStateManager(this); + + // Add channel 0 request and response managers, since they will not be added through the usual mechanism + _channelId2RequestMgrMap.put(0, new RequestManager(0, this)); + _channelId2ResponseMgrMap.put(0, new ResponseManager(0, _stateManager, this)); } public AMQProtocolSession(AMQProtocolHandler protocolHandler, IoSession protocolSession, AMQConnection connection, AMQStateManager stateManager) @@ -135,6 +143,9 @@ public class AMQProtocolSession implements AMQProtocolWriter, ProtocolVersionLis _stateManager = stateManager; _stateManager.setProtocolSession(this); + // Add channel 0 request and response managers, since they will not be added through the usual mechanism + _channelId2RequestMgrMap.put(0, new RequestManager(0, this)); + _channelId2ResponseMgrMap.put(0, new ResponseManager(0, _stateManager, this)); } public void init() |
