Author: rajdavies
Date: Thu Mar  8 02:59:29 2007
New Revision: 516008

URL: http://svn.apache.org/viewvc?view=rev&rev=516008
Log:
close connection before restarting the broker

Modified:
    
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java

Modified: 
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
URL: 
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java?view=diff&rev=516008&r1=516007&r2=516008
==============================================================================
--- 
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
 (original)
+++ 
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
 Thu Mar  8 02:59:29 2007
@@ -73,6 +73,7 @@
 
         // Since prepared but not committed.. they should not get delivered.
         assertNoMessagesLeft(connection);
+        connection.request(closeConnectionInfo(connectionInfo));
 
         // restart the broker.
         restartBroker();
@@ -134,7 +135,7 @@
         
         // Commit
         connection.send(createCommitTransaction1Phase(connectionInfo, txid));
-
+        connection.request(closeConnectionInfo(connectionInfo));
         // restart the broker.
         restartBroker();
         


Reply via email to