Hi Senaka,

Even though the bind.address does not get set, the first node of the cluster
starts successfully. The issue mentioned at [1] appears only when we start
the second node of the cluster.

Yes, I agree that if we set the bing.address explicitly, this works well.
Hence, the problem may be unavailability of bind.address.

Thanks,
Waruna
On Wed, Apr 27, 2011 at 10:25 AM, Senaka Fernando <sen...@wso2.com> wrote:

> Hi all,
>
> It seems that there are some issues in the server initialization code,
> where the JGroups bind.address (for example) it not setup in-time, see [1].
> The code responsible for setting this up is found in [2].
>
>             // Set the JGroups bind address for the use of the Caching
> Implementation based on
>             // Infinispan.
>             if (System.getProperty("bind.address") == null) {
>                 System.setProperty("bind.address",
>                                    (hostName != null &&
> hostName.trim().length() != 0) ?
>                                    hostName.trim() :
> NetworkUtils.getLocalHostname());
>             }
>             // Initialize the distributed cache for the super-tenant at
> start-up. If not, the first
>             // few cache look-ups will result in misses, until the cache
> manager joins the cluster.
>             SuperTenantCarbonContext.getCurrentContext().getCache();
>
> [1] https://wso2.org/jira/browse/CARBON-9372
> [2]
> https://svn.wso2.org/repos/wso2/trunk/carbon/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/init/CarbonServerManager.java
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2, Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://www.linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
-------------------------------------------------------------------------
Waruna Ranasinghe
Senior Software Engineer, WSO2

Mobile: +94 724 318285
BLOG: http://warunapw.blogspot.com

www.wso2.com - "Lean . Enterprise . Middleware"
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to