You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/03/21 23:56:15 UTC
[59/68] [abbrv] activemq-artemis git commit: small tweak
small tweak
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/8e7e9f25
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8e7e9f25
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8e7e9f25
Branch: refs/heads/refactor-openwire
Commit: 8e7e9f25b9386b93d0b825be85cffc6476dd8a74
Parents: 26e6f77
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Mar 4 17:42:01 2016 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Mon Mar 21 18:54:50 2016 -0400
----------------------------------------------------------------------
.../artemis/core/protocol/openwire/OpenWireConnection.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/8e7e9f25/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
index 598016d..5880f07 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
@@ -224,7 +224,7 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
try {
setLastCommand(command);
- response = command.visit(new CommandProcessor());
+ response = command.visit(commandProcessorInstance);
}
catch (Exception e) {
if (responseRequired) {
@@ -835,10 +835,13 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
}
+ CommandProcessor commandProcessorInstance = new CommandProcessor();
+
+
// This will listen for commands throught the protocolmanager
public class CommandProcessor implements CommandVisitor {
- public AMQConnectionContext getContext() {
+ private AMQConnectionContext getContext() {
return OpenWireConnection.this.getContext();
}