From dafc8254caa4bc6853c52a0ae02b506b915ac6c6 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Wed, 9 Jan 2013 22:42:37 +0000 Subject: [PATCH] turn off JMX, not needed in this test. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1431125 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/bugs/MemoryUsageBlockResumeTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java b/activemq-core/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java index 7f7563cf11..208ac8c1db 100644 --- a/activemq-core/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java @@ -19,6 +19,7 @@ package org.apache.activemq.bugs; import java.io.File; import java.util.Vector; import java.util.concurrent.atomic.AtomicInteger; + import javax.jms.Connection; import javax.jms.DeliveryMode; import javax.jms.Destination; @@ -26,6 +27,7 @@ import javax.jms.Message; import javax.jms.MessageConsumer; import javax.jms.MessageProducer; import javax.jms.Session; + import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQPrefetchPolicy; import org.apache.activemq.TestSupport; @@ -55,7 +57,7 @@ public class MemoryUsageBlockResumeTest extends TestSupport implements Thread.Un Destination bigDestination = new ActiveMQQueue("FooTwoBig"); private String connectionUri; - private Vector exceptions = new Vector(); + private final Vector exceptions = new Vector(); public void testBlockByOtherResumeNoException() throws Exception { @@ -176,7 +178,7 @@ public class MemoryUsageBlockResumeTest extends TestSupport implements Thread.Un broker = new BrokerService(); broker.setDataDirectory("target" + File.separator + "activemq-data"); broker.setPersistent(true); - broker.setUseJmx(true); + broker.setUseJmx(false); broker.setAdvisorySupport(false); broker.setDeleteAllMessagesOnStartup(true);