activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1369148 - /activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java
Date Fri, 03 Aug 2012 18:22:57 GMT
Author: tabish
Date: Fri Aug  3 18:22:56 2012
New Revision: 1369148

URL: http://svn.apache.org/viewvc?rev=1369148&view=rev
Log:
Disable use of JMX on the embedded broker, test doesn't need it.  

Modified:
    activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java

Modified: activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java?rev=1369148&r1=1369147&r2=1369148&view=diff
==============================================================================
--- activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java
(original)
+++ activemq/trunk/activemq-pool/src/test/java/org/apache/activemq/pool/PooledSessionExhaustionTest.java
Fri Aug  3 18:22:56 2012
@@ -16,14 +16,20 @@
  */
 package org.apache.activemq.pool;
 
-import org.apache.activemq.*;
-import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.TransportConnector;
-
-import junit.framework.*;
-import javax.jms.*;
+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 org.apache.log4j.Logger;
 
 public class PooledSessionExhaustionTest extends TestCase {
@@ -42,6 +48,7 @@ public class PooledSessionExhaustionTest
     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();



Mime
View raw message