Hi,
I'm attempting to test sending messages via eventBus across a cluster. I am able to connect the services with hazelcast but I am not able to send messages via eventBus from one cluster member to another.
The code is pretty simple...
The sender:
vertx.setPeriodic(1000, msg -> {
eventBus.send("ping.address", "ping!", reply -> {
if (reply.succeeded()) log.info("received a reply - " + reply.result());
else log.error("did not receive a reply");
});
});
The consumer:
vertx.eventBus().consumer("ping.address", callback -> {
log.info("got a ping message");
callback.reply("pong");
});
I've checked the vertx object to make sure it is a clustered Vertx and the logs show 2 Members in the cluster. Is there any way to observe what channels are available from the consumer side? The example code shows a registerHandler method (https://github.com/vert-x/vertx-examples/blob/master/src/raw/java/eventbus_pointtopoint/Receiver.java) and I have a feeling that I am missing some step with event bus address registration.
Thanks in advance,
Aaron