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/15 21:22:39 UTC

[56/59] [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/7c805145
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7c805145
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7c805145

Branch: refs/heads/refactor-openwire
Commit: 7c805145346bc9b5eab70966f35db868983c8c0f
Parents: 38df9ee
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Mar 4 17:42:01 2016 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Mar 15 16:21:23 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/7c805145/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();
       }