You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/08/21 08:17:28 UTC

[2/3] git commit: Disable the JMX by default in camel-sjms

Disable the JMX by default in camel-sjms


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

Branch: refs/heads/master
Commit: 42473e56c90b20f31e10de691bea32a2beaaa299
Parents: 410beed
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Aug 21 11:58:01 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Aug 21 14:16:41 2014 +0800

----------------------------------------------------------------------
 .../org/apache/camel/component/sjms/support/JmsTestSupport.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/42473e56/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/support/JmsTestSupport.java
----------------------------------------------------------------------
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/support/JmsTestSupport.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/support/JmsTestSupport.java
index b4cdf3c..7919e28 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/support/JmsTestSupport.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/support/JmsTestSupport.java
@@ -59,7 +59,8 @@ public class JmsTestSupport extends CamelTestSupport {
         broker = new BrokerService();
         final int port = AvailablePortFinder.getNextAvailable(33333);
         brokerUri = "tcp://localhost:" + port;
-        broker.getManagementContext().setConnectorPort(AvailablePortFinder.getNextAvailable(port + 1));
+        //Disable the JMX by default
+        broker.setUseJmx(false);
         configureBroker(broker);
         startBroker();
     }