camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/3] git commit: Disable the JMX by default in camel-sjms
Date Thu, 21 Aug 2014 06:17:28 GMT
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 <willem.jiang@gmail.com>
Authored: Thu Aug 21 11:58:01 2014 +0800
Committer: Willem Jiang <willem.jiang@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();
     }


Mime
View raw message