JsonObject mongoconfig = new JsonObject()
.put("connection_string", "mongodb://localhost:27017")
.put("db_name", "database_name")
.put("username", mongoDBUser)
.put("password", mongoDBpassword);
mongoClient = MongoClient.createShared(vertx, mongoconfig);
Router mRouter = Router.router(vertx);
mRouter.get().handler(this::base);
this.vertx.createHttpServer().requestHandler(mRouter::accept).listen(8080);
Use real IP when binding the server.
----
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/96d8bb0d-f6e5-4edb-8e86-bb37fa5a224f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hesbon K. KiptooHead, Research and Product DevelopmentEclectics International Limited, 3rd Floor, Utumishi House, Mamlaka Road"Do one thing and do it well", UNIX Philosophy.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAFTftzaPVWbdycqG8mbMWmRf6GL2uNc7biVoL%3D1svj868oLBYQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cf8146e5-4375-42ad-a8ec-ad8d29877dc3%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAH6s0fy8HDHAD%2BaCKzfo0Yj5pZFbDzwWN5LQBaFXTDKGDc3Uqw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
listen(int, String) but the server will listen on host "0.0.0.0" and port specified here ignoring any value in the HttpServerOptions that was used when creating the server.this.vertx.createHttpServer().requestHandler(mRouter::accept).listen(8080,192.145.89.12);
Hesbon K. KiptooHead, Research and Product DevelopmentEclectics International Limited, 3rd Floor, Utumishi House, Mamlaka Road"Do one thing and do it well", UNIX Philosophy.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cf8146e5-4375-42ad-a8ec-ad8d29877dc3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAFTftza9Ar%3DewnoRhzmZYOF-SxjFTn07by4OQ75s6c1VnWoQyA%40mail.gmail.com.
this.vertx.createHttpServer().requestHandler(mRouter::accept).listen(8080,192.145.89.12);
Hesbon K. KiptooHead, Research and Product DevelopmentEclectics International Limited, 3rd Floor, Utumishi House, Mamlaka Road"Do one thing and do it well", UNIX Philosophy.
On Sun, Jun 3, 2018 at 11:35 PM, dansol obondo <dansol...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/d40dfd66-bf25-4a01-922b-feeed9872434%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.