Hi,
I am a little bit confused about this behaviour:
If a Verticle fails at startup, Vertx does not stop the Verticle's tasks.
As it has not been successfully deployed, I cannot undeploy the Verticle.
Is this behavior intended?
If so, how can I avoid it?
Best regards,
Philipp
CODE
==================
public class VertxStarter {
private static Logger logger;
public static void main(String[] args) throws InterruptedException {
logger = LoggerFactory.getLogger(VertxStarter.class);
Vertx vertx = Vertx.vertx();
vertx.deployVerticle(new Vertxtest(), event -> {
if (event.succeeded()) {
}
else {
vertx.setTimer(15000, timer -> {
StringBuilder strb = new StringBuilder("IDs of all deployed modules: ");
vertx.deploymentIDs().forEach(id -> {
strb.append(id);
strb.append(" ");
});
});
}
});
}
}