mirror of https://github.com/apache/activemq.git
close connection before restarting the broker
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8ad375ff60
commit
c97b97ed88
|
@ -73,6 +73,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
|
|||
|
||||
// Since prepared but not committed.. they should not get delivered.
|
||||
assertNoMessagesLeft(connection);
|
||||
connection.request(closeConnectionInfo(connectionInfo));
|
||||
|
||||
// restart the broker.
|
||||
restartBroker();
|
||||
|
@ -134,7 +135,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
|
|||
|
||||
// Commit
|
||||
connection.send(createCommitTransaction1Phase(connectionInfo, txid));
|
||||
|
||||
connection.request(closeConnectionInfo(connectionInfo));
|
||||
// restart the broker.
|
||||
restartBroker();
|
||||
|
||||
|
|
Loading…
Reference in New Issue