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 ...