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

Installing the Vert.x Mongo Persistor module

Now that you have MongoDB installed and running, you can connect to it from Vert.x. This can be done with the Mongo Persistor module, available in the public module registry. While we're at it, let's also look at the process of finding and installing a Vert.x module from the registry.

We have already used a publicly available Vert.x module: the Web Server module, deployed in Chapter 1, Getting Started with Vert.x. We deployed it using the container.deployModule function in the deployment verticle, app.js. You'll find the module installed in the mods subdirectory of the project.

The Mongo Persistor module can be installed in exactly the same way. Just deploy the module from the deployment verticle. Vert.x ...

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