mirror of https://github.com/apache/activemq.git
Set instance variables to null so that we don't OOM exceptions when using m2
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@398076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
794e8d7880
commit
b022a9d835
|
@ -100,8 +100,12 @@ abstract public class JmsTransactionTestSupport extends TestSupport implements M
|
|||
log.info("Closing down connection");
|
||||
|
||||
session.close();
|
||||
session=null;
|
||||
connection.close();
|
||||
connection=null;
|
||||
broker.stop();
|
||||
broker=null;
|
||||
|
||||
log.info("Connection closed.");
|
||||
}
|
||||
|
||||
|
|
|
@ -87,6 +87,10 @@ public class BrokerTestSupport extends CombinationTestSupport {
|
|||
|
||||
protected void tearDown() throws Exception {
|
||||
broker.stop();
|
||||
broker=null;
|
||||
regionBroker=null;
|
||||
persistenceAdapter=null;
|
||||
memoryManager=null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ public class TransactedTopicMasterSlaveTest extends JmsTopicTransactionTest{
|
|||
|
||||
protected void tearDown() throws Exception{
|
||||
slave.stop();
|
||||
slave=null;
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue