diff --git a/spring-examples/springboot-clustering/springboot-clustering-hazelcast/src/main/java/io/vertx/examples/spring/clustering/hazelcast/VertxProducer.java b/spring-examples/springboot-clustering/springboot-clustering-hazelcast/src/main/java/io/vertx/examples/spring/clustering/hazelcast/VertxProducer.java index f1d86d626..1f5ff197c 100644 --- a/spring-examples/springboot-clustering/springboot-clustering-hazelcast/src/main/java/io/vertx/examples/spring/clustering/hazelcast/VertxProducer.java +++ b/spring-examples/springboot-clustering/springboot-clustering-hazelcast/src/main/java/io/vertx/examples/spring/clustering/hazelcast/VertxProducer.java @@ -47,8 +47,11 @@ public class VertxProducer { @PostConstruct void init() throws ExecutionException, InterruptedException { - VertxOptions options = new VertxOptions() - .setClusterManager(new HazelcastClusterManager(hazelcastInstance)); + VertxOptions options = new VertxOptions() + .setClusterManager(new HazelcastClusterManager(hazelcastInstance)) + .setClustered(true) + .setHAEnabled(true) + .setClusterHost("192.168.0.67");// Write your ip address numeric form CompletableFuture future = new CompletableFuture<>(); Vertx.clusteredVertx(options, ar -> { if (ar.succeeded()) {