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:
Timothy A. Bish 2012-08-03 18:22:56 +00:00
parent 378d7a606b
commit c7fcceac0e
1 changed files with 13 additions and 6 deletions

View File

@ -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();