Christopher G. Stach II wrote:
> Suchitha Koneru (sukoneru) wrote:
>> Hello Active Mq Users ,
>> Our application currently uses active mq 4.0.1
>> version. We use an embedded broker along with durable subscribers and
>> topic publishers.
>>
>> Active MQ also uses ports internally which are not configurable, these
>> ports are randomly allocated.
>>
>> For these ports ,Does active mq take into account that if the port
>> which it needs to use is already occupied , will it try allocating a
>> different port ?
>>
>> Please let me know, we need this information because when our
>> application is on the production machine , we do not have a control as
>> to which ports are available.
>>
>>
>>
>> thanks,
>> Suchitha
>>
>>
>
> If you're talking about random local ports like the ones used for JMX
> (RMI), the OS selects them. You can't bind two sockets to the same
> address-port pair. If it was the case that something didn't check if a
> port was already in use, and it was, it wouldn't even work.
>
Nerd disclaimer: It's sometimes possible. :)
--
Christopher G. Stach II
|