Vertx Eventbus not working in Java

后端 未结 2 1794
孤城傲影
孤城傲影 2021-01-14 03:54

OS Linux JDK 1.7.0_67 Vert.x 2.1.5

Just getting started for wiring some of the vertx examples found on github.

Due to the manual want to try out a simple Sen

2条回答
  •  情深已故
    2021-01-14 04:13

    Might be helpful for those who is using programmatic way of clustering. Please check you have the following values set in your vertx options:

    VertxOptions options = new VertxOptions().setClustered(true)
                    .setClusterHost("198.12.12.12")
                    .setHAEnabled(true)
                    .setHAGroup("dev");
    
     Vertx.clusteredVertx(options, res -> System.out.println(res.succeeded()));
    

提交回复
热议问题