mirror of https://github.com/apache/activemq.git
This test does not need a management context, disable JMX
This commit is contained in:
parent
9b017fdb39
commit
aae7aeaf39
|
@ -16,6 +16,21 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.bugs;
|
package org.apache.activemq.bugs;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
import java.util.concurrent.CountDownLatch;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
|
import javax.jms.Connection;
|
||||||
|
import javax.jms.Destination;
|
||||||
|
import javax.jms.JMSException;
|
||||||
|
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.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
|
@ -28,14 +43,6 @@ import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import javax.jms.*;
|
|
||||||
import java.util.concurrent.CountDownLatch;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
|
|
||||||
public class AMQ4368Test {
|
public class AMQ4368Test {
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(AMQ4368Test.class);
|
private static final Logger LOG = LoggerFactory.getLogger(AMQ4368Test.class);
|
||||||
|
@ -74,6 +81,8 @@ public class AMQ4368Test {
|
||||||
kahadb.deleteAllMessages();
|
kahadb.deleteAllMessages();
|
||||||
broker.setPersistenceAdapter(kahadb);
|
broker.setPersistenceAdapter(kahadb);
|
||||||
broker.getSystemUsage().getMemoryUsage().setLimit(1024*1024*100);
|
broker.getSystemUsage().getMemoryUsage().setLimit(1024*1024*100);
|
||||||
|
broker.setUseJmx(false);
|
||||||
|
|
||||||
return broker;
|
return broker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue