ensure xml brokers are shutdown at test end

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1159818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-08-19 23:40:42 +00:00
parent 8d5f07b9ca
commit cd7fb6974d
2 changed files with 11 additions and 1 deletions

View File

@ -311,6 +311,12 @@ public class LoadBalanceTest {
+ " and broker2 got "
+ broker2Count.get());
}
BrokerService broker = BrokerRegistry.getInstance().lookup("one");
broker.stop();
broker = BrokerRegistry.getInstance().lookup("two");
broker.stop();
}
// need to ensure broker bridge is alive before starting the consumer

View File

@ -18,7 +18,9 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<!-- Allows us to use system properties as variables in this configuration file -->
@ -27,7 +29,9 @@
<value>SYSTEM_PROPERTIES_MODE_OVERRIDE</value>
</property>
</bean>
<context:annotation-config />
<!-- Configures a broker with the system's hostname as its name with jmx but no persistence or adivsory support -->
<amq:broker brokerName="${lbt.brokerName}" useJmx="false" persistent="false" advisorySupport="true" useLocalHostBrokerName="false">