JsonObject obj = new JsonObject();
obj.put("mongoBaseURL","http://test1.com");
obj.put("NEW_API_URL", "http://test2.com");
options = new DeploymentOptions().setConfig(obj);
vertx.deployVerticle(QueueServiceVerticle.class.getName(), options, context.asyncAssertSuccess());
// S.O.P(vertx.getOrCreateContext().config().getString(” mongoBaseURL”)) -- is null !!
--
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/4a5a6f68-c0b7-4162-9ed0-4727eb253563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/68c1b942-31c1-4d8f-b34a-5a8dde0f1f94%40googlegroups.com.
JsonObject obj = new JsonObject();
obj.put("mongoBaseURL","http://test1.com");
obj.put("NEW_API_URL", "http://test2.com");
options = new DeploymentOptions().setConfig(obj);
vertx.deployVerticle(QueueServiceVerticle.class.getName(), options, context.asyncAssertSuccess());
// S.O.P(vertx.getOrCreateContext().config().getString(” mongoBaseURL”)) -- is null !!
--------------
@Before
public void setUp(TestContext context) throws IOException {
vertx = Vertx.vertx();
// vertx = Vertx.vertx();
JsonObject obj = new JsonObject();
obj.put("mongoBaseURL","http://test.com");
obj.put("Queue_URI", "http://test.com");
obj.put("Queue_name", "Queue");
options = new DeploymentOptions().setConfig(obj);
vertx.deployVerticle(QueueServiceVerticle.class.getName(), options, context.asyncAssertSuccess());
qc = new QueueController(vertx);
client = qc.createClientWithUri();
}
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/68a5c185-2cf0-4147-b9d9-5cf540588388%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/c7a2f099-ad7e-4686-acd0-5f8ae7fb571e%40googlegroups.com.
System.out.println("TEST -- CONFIG VALUE SEARCH ****" +config().getString("mongoBaseURL"));