123456789101112131415 |
- var container = require('vertx/container')
- var persistorConf = {
- address: 'hello.persistor',
- db_name: 'hello_world',
- host: 'localhost'
- }
- container.deployModule('io.vertx~mod-mongo-persistor~2.1.1', persistorConf, function (err, dep_id) {
- if (!err) {
- container.deployVerticle('WebServer.java', java.lang.Runtime.getRuntime().availableProcessors() * 2);
- } else {
- err.printStackTrace();
- }
- });
|