Disable JMX on the test brokers as it's not needed in these tests, prevents some failures and speeds things up a little.
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/31015094 Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/31015094 Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/31015094 Branch: refs/heads/activemq-5.10.x Commit: 31015094aae9945deed406ebf9bbe65aee85fe6a Parents: d8b126d Author: Timothy Bish <[email protected]> Authored: Wed Jul 30 09:40:09 2014 -0400 Committer: Hadrian Zbarcea <[email protected]> Committed: Wed Dec 17 15:07:36 2014 -0500 ---------------------------------------------------------------------- .../activemq/jms/pool/PooledConnectionFactoryTest.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/31015094/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java ---------------------------------------------------------------------- diff --git a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java index e20a605..2d3404f 100644 --- a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java +++ b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java @@ -58,7 +58,8 @@ public class PooledConnectionFactoryTest { @Test public void testClearAllConnections() throws Exception { - ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false"); + ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory( + "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false"); PooledConnectionFactory cf = new PooledConnectionFactory(); cf.setConnectionFactory(amq); cf.setMaxConnections(3); @@ -89,7 +90,8 @@ public class PooledConnectionFactoryTest { @Test public void testMaxConnectionsAreCreated() throws Exception { - ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false"); + ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory( + "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false"); PooledConnectionFactory cf = new PooledConnectionFactory(); cf.setConnectionFactory(amq); cf.setMaxConnections(3); @@ -108,7 +110,8 @@ public class PooledConnectionFactoryTest { @Test public void testConnectionsAreRotated() throws Exception { - ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false"); + ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory( + "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false"); PooledConnectionFactory cf = new PooledConnectionFactory(); cf.setConnectionFactory(amq); cf.setMaxConnections(10); @@ -149,7 +152,8 @@ public class PooledConnectionFactoryTest { @Test public void testConnectionsArePooledAsyncCreate() throws Exception { - final ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false"); + final ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory( + "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false"); final PooledConnectionFactory cf = new PooledConnectionFactory(); cf.setConnectionFactory(amq); cf.setMaxConnections(1); @@ -205,6 +209,7 @@ public class PooledConnectionFactoryTest { BrokerService brokerService = new BrokerService(); brokerService.setPersistent(false); + brokerService.setUseJmx(false); brokerService.addConnector("tcp://localhost:0"); brokerService.start(); brokerService.waitUntilStarted();
