resolve https://issues.apache.org/activemq/browse/AMQ-2999 - use widlcard address for tcp connector

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1027461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-10-26 11:01:57 +00:00
parent 1aa6cbc56a
commit 3b51a692be
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class PeerTransportFactory extends TransportFactory {
BrokerService service = new BrokerService();
IntrospectionSupport.setProperties(service, brokerOptions);
service.setBrokerName(finalBroker);
TransportConnector c = service.addConnector("tcp://localhost:0");
TransportConnector c = service.addConnector("tcp://0.0.0.0:0");
c.setDiscoveryUri(new URI("multicast://default?group=" + finalGroup));
service.addNetworkConnector("multicast://default?group=" + finalGroup);
return service;