How to pass VertxOptions from the command line (e.g. workflows)?
I'm talking about something like this:
java -jar fat.jar --workerThreads 40
or
vertx run server.js --workerThreads 40
This parameter is not mentioned in the manual or API.
Is there any way to do this?
I know there is an API:
var Vertx = require("vertx-js/vertx");
var vertx = Vertx.vertx({
"workerPoolSize" : 40
});
But when I use this API, I get a warning from Vertx:
You're already on a Vert.x context, are you sure you want to create a new Vertx instance?
So, I think I'm doing something wrong ...
source
share