Author: azeez
Date: Tue Dec 6 10:59:06 2011
New Revision: 1210857
URL: http://svn.apache.org/viewvc?rev=1210857&view=rev
Log:
Instead of throwin an Exception when the localMemberHost is set to 127.0.0.1,
just print a warning. 127.0.0.1 address is useful in testing scenarios.
Modified:
axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java
Modified:
axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java?rev=1210857&r1=1210856&r2=1210857&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java
(original)
+++
axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java
Tue Dec 6 10:59:06 2011
@@ -197,10 +197,8 @@ public class TribesClusteringAgent imple
channel.start(Channel.DEFAULT); // At this point, this member
joins the group
String localHost = TribesUtil.getLocalHost(channel);
if (localHost.startsWith("127.0.")) {
- channel.stop(Channel.DEFAULT);
- throw new ClusteringFault("Cannot join cluster using IP " +
localHost +
- ". Please set an IP address other
than " +
- localHost + " in the axis2.xml
file");
+ log.warn("Local member advertising its IP address as
127.0.0.1. " +
+ "Remote members will not be able to connect to this
member.");
}
} catch (ChannelException e) {
String msg = "Error starting Tribes channel";