Vert.x - Main Method

Java Conceptuel Diagram


A Main method is one of the two start point of a Vert.x application.

The main method may also be located in a verticle


public static void main(String[] args) {
	Vertx vertx = Vertx.vertx();

	JsonObject conf = new JsonObject()
	  .put("key1", "value1")
	  .put("key2", "value2");

	  new DatabaseVerticle(),
	  new DeploymentOptions().setConfig(conf)


application {
  mainClassName = ""


Discover More
Java Conceptuel Diagram
Vert.x - Application Start - (Entry|Start) point

A main entry of a vert.x application will start a vertx instance and deploy one or several verticle in it. You have two methods to start an application a main class or the launcher - The is an advanced...
Java Conceptuel Diagram
Vert.x - Deployment

in Vert.x You have two ways to deploy your Vert.x application. You can provide: a fat jar that contains all dependency on only the verticle when you have already a vert.x distribution. main class...
Vertx Launcher Idea Run
Vert.x - Launcher class

The io/vertx/core/LauncherVertx launcher is one of the two way to start an application It is a launcher class that wraps the management of a vertx instance and the deployment of a main verticle. It can...
Java Conceptuel Diagram
Vert.x - The launcher run command

The run command (Code) is a command of the launcher. It will: create a instance...

Share this page:
Follow us:
Task Runner