package net.trajano.ms.engine.sample;

import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.http.HttpServer;
import io.vertx.ext.web.Router;
import net.trajano.ms.engine.JaxRsRoute;

public class Main {

    public static void main(final String[] args) {

        final VertxOptions options = new VertxOptions();
        Vertx.clusteredVertx(options, event -> {
            final Vertx vertx = event.result();

            final Router router = Router.router(vertx);
            final HttpServer http = vertx.createHttpServer();

            JaxRsRoute.route(vertx, router, MyApp.class);
            http.requestHandler(req -> router.accept(req)).listen(8280);
        });

        //final Vertx vertx = Vertx.vertx();

    }
}

@@ -32,16 +32,55 @@
 ample;%0A%0A
+import io.vertx.core.AbstractVerticle;%0A
 import i
@@ -264,16 +264,41 @@
 ss Main 
+extends AbstractVerticle 
 %7B%0A%0A    p
@@ -494,29 +494,195 @@
 t.result();%0A
-%0A
     
+        vertx.deployVerticle(new Main());%0A%0A        %7D);%0A%0A        //final Vertx vertx = Vertx.vertx();%0A%0A    %7D%0A%0A    @Override%0A    public void start() throws Exception %7B%0A%0A
         fina
@@ -721,20 +721,16 @@
 vertx);%0A
-    
         
@@ -788,20 +788,16 @@
         
- 
-   
 JaxRsRou
@@ -834,20 +834,16 @@
 class);%0A
-    
         
@@ -907,67 +907,8 @@
 0);%0A
-        %7D);%0A%0A        //final Vertx vertx = Vertx.vertx();%0A%0A
     

Convert main to a verticle