It works, fine. BTW, I used getUri() instead.
jlim wrote: > > Hi, > > try retrieving the transport connectors (BrokerService - > getTransportConnectors() ) from the broker then we should be able to > get the port from TransportConnector - getConnectUri().getPort() for > each of the connectors configured to the broker. > > > Regards, > Jonas > > > Motl wrote: >> Hi, >> >> When creating a BrokerService, zero port could be specified, telling the >> broker application to bind on any free port. >> Is it possible to retrieve the assigned port afterwards? >> > > -- View this message in context: http://www.nabble.com/retrieve-activemq-broker%27s-port-tf4796743s2354.html#a13731432 Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
