diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-08-12 18:20:16 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-08-12 18:20:16 +0000 |
| commit | 4bf8623e418945618f9faadf9f5299028782c962 (patch) | |
| tree | 5b760a30ad00c53175c41f4e359db64898c9e468 /java | |
| parent | c2b57c57a4d6d5b549147c7b49ec929f576fbcd5 (diff) | |
| download | qpid-python-4bf8623e418945618f9faadf9f5299028782c962.tar.gz | |
QPID-2002 : Ensure that we set the logging actor correctly when mina signals the connection closed
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@803650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/protocol/AMQPFastProtocolHandler.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/protocol/AMQPFastProtocolHandler.java b/java/broker/src/main/java/org/apache/qpid/server/protocol/AMQPFastProtocolHandler.java index 0dbefd8798..16b85e67b3 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/protocol/AMQPFastProtocolHandler.java +++ b/java/broker/src/main/java/org/apache/qpid/server/protocol/AMQPFastProtocolHandler.java @@ -48,6 +48,7 @@ import org.apache.qpid.framing.ProtocolVersion; import org.apache.qpid.server.configuration.ServerConfiguration; import org.apache.qpid.server.registry.ApplicationRegistry; import org.apache.qpid.server.registry.IApplicationRegistry; +import org.apache.qpid.server.logging.actors.CurrentActor; import org.apache.qpid.ssl.SSLContextFactory; /** @@ -175,12 +176,17 @@ public class AMQPFastProtocolHandler extends IoHandlerAdapter { try { + CurrentActor.set(amqProtocolSession.getLogActor()); amqProtocolSession.closeSession(); } catch (AMQException e) { _logger.error("Caught AMQException whilst closingSession:" + e); } + finally + { + CurrentActor.remove(); + } } } |
