fix hang on org.apache.activemq.network.FailoverStaticNetworkTest - network connector vm creation clashing with broker stop

This commit is contained in:
gtully 2015-01-23 11:27:10 +00:00
parent 35115fece7
commit 981c0f20fa
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public final class NetworkBridgeFactory {
HashMap<String, String> map = new HashMap<String, String>(URISupport.parseParameters(uri));
map.put("network", "true");
map.put("async", "true");
map.put("create", "false"); // we don't want a vm connect during shutdown to trigger a broker create
uri = URISupport.createURIWithQuery(uri, URISupport.createQueryString(map));
return TransportFactory.connect(uri);
}