activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Lim <j...@exist.com>
Subject Re: retrieve activemq broker's port
Date Tue, 13 Nov 2007 10:30:00 GMT
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?
>   

Mime
View raw message