O'Reilly logo

Real-time Web Application Development using Vert.x 2.0 by Tero Parviainen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a module

Our image generator module won't be reused in other projects at this point, so we'll use the easiest method for creating one, and that is within the directory structure of our existing application.

If you take a look at the mods subdirectory of our project, you'll see two subdirectories: io.vertx~mod-mongo-persistor~2.0.0-final and io.vertx~mod-web-server~v2.0.0-final. These are the modules Vert.x has downloaded for us from the public module repositories.

Tip

Vert.x module directory names follow the naming convention [package]~[name]~[version]. It is recommended to use a Java style reverse domain name (such as io.vertx) as the package name to prevent naming conflicts when modules are distributed.

Let's add our new module in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required