Browse code

Feat: HZ 3.12 & bind any false

Thomas Cataldo authored on 11/04/2019 09:32:34
Showing 2 changed files
... ...
@@ -43,7 +43,7 @@
43 43
 		<repository>
44 44
 			<id>bluemind-deps</id>
45 45
 			<layout>p2</layout>
46
-			<url>http://forge.blue-mind.net/staging/p2/dependencies/406/</url>
46
+			<url>http://forge.blue-mind.net/staging/p2/dependencies/407/</url>
47 47
 		</repository>
48 48
 		<repository>
49 49
 			<id>tigase</id>
... ...
@@ -49,7 +49,6 @@ import com.netflix.spectator.api.Gauge;
49 49
 import com.netflix.spectator.api.Id;
50 50
 import com.netflix.spectator.api.Registry;
51 51
 
52
-import net.bluemind.config.BmIni;
53 52
 import net.bluemind.config.InstallationId;
54 53
 import net.bluemind.eclipse.common.RunnableExtensionLoader;
55 54
 import net.bluemind.hornetq.client.IHazelcastConfigPimp;
... ...
@@ -68,10 +67,7 @@ public final class ClusterMember extends ClusterNode {
68 67
 
69 68
 		cfg.setInstanceName(jvmType + "-" + UUID.randomUUID().toString());
70 69
 		cfg.setProperty("hazelcast.logging.type", "slf4j");
71
-		if (BmIni.value("hz-bind-any") != null) {
72
-			cfg.setProperty("hazelcast.socket.bind.any", BmIni.value("hz-bind-any"));
73
-			cfg.setProperty("hazelcast.socket.client.bind.any", BmIni.value("hz-bind-any"));
74
-		}
70
+		cfg.setProperty("hazelcast.socket.server.bind.any", "false");
75 71
 		cfg.setProperty(GroupProperty.HEALTH_MONITORING_LEVEL.getName(), HealthMonitorLevel.OFF.name());
76 72
 		GroupConfig gc = new GroupConfig(MQ.CLUSTER_ID);
77 73
 		cfg.setGroupConfig(gc);