app.js 363 B

123456789101112131415
  1. var container = require('vertx/container')
  2. var persistorConf = {
  3. address: 'hello.persistor',
  4. db_name: 'hello_world',
  5. host: 'localhost'
  6. }
  7. container.deployModule('io.vertx~mod-mongo-persistor~2.0.0-final', persistorConf, function (err, dep_id) {
  8. if (!err) {
  9. container.deployVerticle('WebServer.java', 8);
  10. } else {
  11. err.printStackTrace();
  12. }
  13. });