CAMEL-6740: System property org.apache.camel.jmx.createRmiConnector is ignored
with spring xml. Thanks to Seiji Sogabe for the patch.
Conflicts:
camel-core/src/main/java/org/apache/camel/management/DefaultManagementAgent.java
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ee5ca5cd
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ee5ca5cd
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ee5ca5cd
Branch: refs/heads/camel-2.10.x
Commit: ee5ca5cdd4454bc5985d951785c391e4b8c7f0b2
Parents: 0db45d0
Author: Claus Ibsen <[email protected]>
Authored: Sat Sep 14 12:28:55 2013 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Sat Sep 14 12:30:45 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/ee5ca5cd/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 5f4edad..66b46d3 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
@@ -85,8 +85,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);
}
@@ -112,13 +110,15 @@ 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);
}
if (System.getProperty(JmxSystemPropertyKeys.REGISTER_NEW_ROUTES) !=
null) {
registerNewRoutes =
Boolean.getBoolean(JmxSystemPropertyKeys.REGISTER_NEW_ROUTES);
}
+ if (System.getProperty(JmxSystemPropertyKeys.CREATE_CONNECTOR) !=
null) {
+ createConnector =
Boolean.getBoolean(JmxSystemPropertyKeys.CREATE_CONNECTOR);
+ }
}
public void setRegistryPort(Integer port) {