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:
Hiram R. Chirino 2006-04-29 03:22:23 +00:00
parent 794e8d7880
commit b022a9d835
3 changed files with 9 additions and 0 deletions

View File

@ -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.");
}

View File

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

View File

@ -55,6 +55,7 @@ public class TransactedTopicMasterSlaveTest extends JmsTopicTransactionTest{
protected void tearDown() throws Exception{
slave.stop();
slave=null;
super.tearDown();
}