[Carbon-dev] Asking for alternatives to used ports during start up

2011-05-08 Thread Tharindu Mathew
Hi,

Is it possible to detect used ports and ask for an alternative during our
start up script?

I was thinking with around 5 ports to change when starting up multiple
carbon servers, this might be a nice thing to have.

-- 
Regards,

Tharindu
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Asking for alternatives to used ports during start up

2011-05-08 Thread Amila Jayasekara
Another option is to use a port range. If a component is listening on
a port then an offset is specified in the configuration. Only the base
port number will be a configuration.

i.e. if base port number is 5000 and if LDAP server is configured to
use offset of 2, LDAP server will actually listen on 5002 (5000 + 2).
This way user only needs to change port number at a single location
when running multiple instances.

Thanks
AmilaJ

On Sun, May 8, 2011 at 12:16 PM, Tharindu Mathew thari...@wso2.com wrote:
 Hi,
 Is it possible to detect used ports and ask for an alternative during our
 start up script?
 I was thinking with around 5 ports to change when starting up multiple
 carbon servers, this might be a nice thing to have.

 --
 Regards,

 Tharindu


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev