From my routing verticle which has route URL, I want to send RoutingContext object to another verticle. I believe we can only use vertx.eventBus().send() to send message from routing verticle to some other action verticle. Can I send RoutingContext object as a message?
In router verticle I am doing
vertx.eventBus().<RoutingContext>send("address", routingContext)
and in consumer verticle I am doing
vertx.eventBus().<RoutingContext>consumer("address").handler(message -> {
RoutingContext routingContext = message.body();
LOGGER.info("routingContext body = "+routingContext.getBodyAsString());
});
but looks like vertx itself is not able to execute 'vertx.eventBus().send' Could anyone please let me know how could I send RoutingContext object using vertx.eventBus().send method?