activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: Fixed activemq karaf commands.
Date Tue, 01 Oct 2013 20:37:17 GMT
Updated Branches:
  refs/heads/trunk 8089e0d10 -> a50317267


Fixed activemq karaf commands.


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/a5031726
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/a5031726
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/a5031726

Branch: refs/heads/trunk
Commit: a5031726752418fc735f1a3984de1f2a34e76fa3
Parents: 8089e0d
Author: Claus Ibsen <claus.ibsen@gmail.com>
Authored: Tue Oct 1 22:37:04 2013 +0200
Committer: Claus Ibsen <claus.ibsen@gmail.com>
Committed: Tue Oct 1 22:37:04 2013 +0200

----------------------------------------------------------------------
 .../apache/activemq/karaf/commands/ActiveMQCommandSupport.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/a5031726/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
----------------------------------------------------------------------
diff --git a/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
b/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
index 9822037..c05e7d0 100644
--- a/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
+++ b/activemq-karaf/src/main/java/org/apache/activemq/karaf/commands/ActiveMQCommandSupport.java
@@ -41,7 +41,8 @@ public class ActiveMQCommandSupport extends OsgiCommandSupport {
 
         try {
             currentCommand.setCommandContext(context2);
-            arguments.add("--jmxlocal");
+            // must be added first
+            arguments.add(0, "--jmxlocal");
             currentCommand.execute(arguments);
             return null;
         } catch (Throwable e) {


Mime
View raw message