mirror of https://github.com/apache/activemq.git
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:
parent
8d5f07b9ca
commit
cd7fb6974d
|
@ -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
|
||||
|
|
|
@ -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 -->
|
||||
|
@ -28,6 +30,8 @@
|
|||
</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">
|
||||
|
||||
|
|
Loading…
Reference in New Issue