/*
 * Copyright (c) 2015-2016, Index Data
 * All rights reserved.
 * See the file LICENSE for details.
 */
package okapi;

import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;

public class MainCluster {
  public static void main(String[] args) {
    VertxOptions vopt = new VertxOptions();

    Vertx.clusteredVertx(vopt, res->{
      if ( res.succeeded() ) {
        DeploymentOptions opt = new DeploymentOptions();
        res.result().deployVerticle(MainVerticle.class.getName(), opt);
      } else {
        System.out.println("Failed to create a clustered vert.x");
      }
    });

  }
}

@@ -116,16 +116,52 @@
 okapi;%0A%0A
+import com.hazelcast.config.Config;%0A
 import i
@@ -259,78 +259,489 @@
 ns;%0A
-%0Apublic class MainCluster %7B%0A  public static void main(String%5B%5D args) %7B
+import io.vertx.core.spi.cluster.ClusterManager;%0Aimport io.vertx.spi.cluster.hazelcast.HazelcastClusterManager;%0A%0Apublic class MainCluster %7B%0A  public static void main(String%5B%5D args) %7B%0A    System.setProperty(%22vertx.logger-delegate-factory-class-name%22, %22io.vertx.core.logging.SLF4JLogDelegateFactory%22);%0A    Config hazelcastConfig = new Config();%0A    hazelcastConfig.setProperty(%22hazelcast.logging.type%22, %22slf4j%22);%0A    ClusterManager mgr = new HazelcastClusterManager(hazelcastConfig);
 %0A   
@@ -779,18 +779,40 @@
 ptions()
+.setClusterManager(mgr)
 ;
-%0A
 %0A    Ver

Configure vertx/hazelcast to use SLF4J