mirror of https://github.com/apache/activemq.git
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:
parent
1aa6cbc56a
commit
3b51a692be
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue