mirror of https://github.com/apache/activemq.git
Disable use of JMX on the embedded broker, test doesn't need it.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1369148 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
378d7a606b
commit
c7fcceac0e
|
@ -16,14 +16,20 @@
|
|||
*/
|
||||
package org.apache.activemq.pool;
|
||||
|
||||
import org.apache.activemq.*;
|
||||
import javax.jms.Connection;
|
||||
import javax.jms.ConnectionFactory;
|
||||
import javax.jms.Destination;
|
||||
import javax.jms.Message;
|
||||
import javax.jms.MessageConsumer;
|
||||
import javax.jms.MessageProducer;
|
||||
import javax.jms.Session;
|
||||
import javax.jms.TextMessage;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.broker.TransportConnector;
|
||||
|
||||
import junit.framework.*;
|
||||
import javax.jms.*;
|
||||
import javax.jms.Message;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class PooledSessionExhaustionTest extends TestCase {
|
||||
|
@ -42,6 +48,7 @@ public class PooledSessionExhaustionTest extends TestCase {
|
|||
protected void setUp() throws Exception {
|
||||
broker = new BrokerService();
|
||||
broker.setPersistent(false);
|
||||
broker.setUseJmx(false);
|
||||
TransportConnector connector = broker.addConnector("tcp://localhost:0");
|
||||
broker.start();
|
||||
connectionUri = connector.getPublishableConnectString();
|
||||
|
|
Loading…
Reference in New Issue