Hi,
I'm wondering how to deploy multiple verticle with guice injected instances. Got this error "Can't specify > 1 instances for already created verticle" when deploying
vertx.deployVerticle(
injector.getInstance(Verticle.class),
new DeploymentOptions().setInstnaces(2).setWorker(true), res -> {}
);
Seems only way to deploy multiple verticle is to specify classname. Anyone experienced this issue as well? Thanks.
On 18 Dec 2016, at 08:29, Roman Novikov <myst...@gmail.com> wrote:How to passed additional params into verticle in this case? for example:
Verticle meVerticle = new MyVerticle(params);
On Sunday, September 25, 2016 at 10:45:23 PM UTC+3, Tim Fox wrote:You've already created your instance. Vert.x can't magically turn one instance of a Java object into N instances.
On Friday, 29 January 2016 21:52:40 UTC, Lizhang Li wrote:Hi,
I'm wondering how to deploy multiple verticle with guice injected instances. Got this error "Can't specify > 1 instances for already created verticle" when deploying
vertx.deployVerticle(
injector.getInstance(Verticle.class),
new DeploymentOptions().setInstnaces(2).setWorker(true), res -> {}
);
Seems only way to deploy multiple verticle is to specify classname. Anyone experienced this issue as well? Thanks.
--
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/9c6af4f1-9295-4860-924a-f33ff8313420%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/3b1bdb4e-5ee6-4d33-856a-dd63eca76470%40googlegroups.com.