camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/6] git commit: CAMEL-6740: System property org.apache.camel.jmx.createRmiConnector is ignored with spring xml. Thanks to Seiji Sogabe for the patch.
Date Sat, 14 Sep 2013 10:31:22 GMT
CAMEL-6740: System property org.apache.camel.jmx.createRmiConnector is ignored with spring
xml. Thanks to Seiji Sogabe for the patch.


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

Branch: refs/heads/master
Commit: 655746a8e86692669fa2dd234db4a1ecd7655f10
Parents: 05958ab
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Sep 14 12:28:55 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Sep 14 12:28:55 2013 +0200

----------------------------------------------------------------------
 .../org/apache/camel/management/DefaultManagementAgent.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/655746a8/camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
b/camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
index 99c8e20..f134ae4 100644
--- a/camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
+++ b/camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
@@ -86,8 +86,6 @@ public class DefaultManagementAgent extends ServiceSupport implements Management
     }
 
     protected void finalizeSettings() {
-        // TODO: System properties ought to take precedence, over configured options
-
         if (registryPort == null) {
             registryPort = Integer.getInteger(JmxSystemPropertyKeys.REGISTRY_PORT, DEFAULT_REGISTRY_PORT);
         }
@@ -113,7 +111,6 @@ public class DefaultManagementAgent extends ServiceSupport implements
Management
         if (System.getProperty(JmxSystemPropertyKeys.USE_PLATFORM_MBS) != null) {
             usePlatformMBeanServer = Boolean.getBoolean(JmxSystemPropertyKeys.USE_PLATFORM_MBS);
         }
-
         if (System.getProperty(JmxSystemPropertyKeys.REGISTER_ALWAYS) != null) {
             registerAlways = Boolean.getBoolean(JmxSystemPropertyKeys.REGISTER_ALWAYS);
         }
@@ -123,6 +120,9 @@ public class DefaultManagementAgent extends ServiceSupport implements
Management
         if (System.getProperty(JmxSystemPropertyKeys.MASK) != null) {
             mask = Boolean.getBoolean(JmxSystemPropertyKeys.MASK);
         }
+        if (System.getProperty(JmxSystemPropertyKeys.CREATE_CONNECTOR) != null) {
+            createConnector = Boolean.getBoolean(JmxSystemPropertyKeys.CREATE_CONNECTOR);
+        }
     }
 
     public void setRegistryPort(Integer port) {


Mime
View raw message